Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

IPv6 #167

Merged
merged 6 commits into from
Aug 17, 2018
Merged

IPv6 #167

merged 6 commits into from
Aug 17, 2018

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Aug 17, 2018

No description provided.

@coveralls
Copy link

coveralls commented Aug 17, 2018

Pull Request Test Coverage Report for Build 1899

  • 62 of 299 (20.74%) changed or added relevant lines in 9 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 24.844%

Changes Missing Coverage Covered Lines Changed/Added Lines %
executor/runtime/types/types.go 8 10 80.0%
vpc/setup/setup.go 0 3 0.0%
vpc/limits.go 0 3 0.0%
vpc/context/context.go 0 6 0.0%
vpc/allocate/setup_container_linux.go 0 21 0.0%
executor/runtime/docker/docker.go 0 21 0.0%
vpc/allocate/ip_pool_manager.go 0 35 0.0%
vpc/allocate/allocate_network.go 0 38 0.0%
vpc/context/cache.go 54 162 33.33%
Files with Coverage Reduction New Missed Lines %
vpc/allocate/ip_pool_manager.go 2 0.0%
Totals Coverage Status
Change from base Build 1893: -0.1%
Covered Lines: 2434
Relevant Lines: 9797

💛 - Coveralls

@codecov
Copy link

codecov bot commented Aug 17, 2018

Codecov Report

Merging #167 into master will decrease coverage by 0.26%.
The diff coverage is 21.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #167      +/-   ##
=========================================
- Coverage   34.06%   33.8%   -0.27%     
=========================================
  Files          64      64              
  Lines        7629    7765     +136     
=========================================
+ Hits         2599    2625      +26     
- Misses       4720    4822     +102     
- Partials      310     318       +8
Impacted Files Coverage Δ
vpc/context/cache_linux.go 57.14% <ø> (ø)
vpc/allocate/allocate_network.go 0% <0%> (ø) ⬆️
vpc/context/context.go 15% <0%> (-0.26%) ⬇️
vpc/allocate/setup_container_linux.go 0% <0%> (ø) ⬆️
vpc/limits.go 0% <0%> (ø) ⬆️
vpc/allocate/ip_pool_manager.go 0% <0%> (ø) ⬆️
vpc/setup/setup.go 0% <0%> (ø) ⬆️
vpc/context/cache.go 29.6% <29.6%> (ø)
executor/runtime/docker/docker.go 50.64% <50%> (-0.2%) ⬇️
executor/runtime/types/types.go 79.54% <75%> (-0.46%) ⬇️
... and 1 more

@sargun
Copy link
Contributor Author

sargun commented Aug 17, 2018

This PR is based on #165, because that has some API improvements and some testing bits that were added. Once that gets merged, I'll rebase on master to clean up the diff.
CC: @andrew-leung @fabiokung

@sargun
Copy link
Contributor Author

sargun commented Aug 17, 2018

PTAL.

return err
}
if ip6 != nil {
// Amazon only gives out /128s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-(

}
defer configLock.Unlock()

iface, err := ctx.Cache.DescribeInterface(ctx, networkinterface.InterfaceID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we assume each interface will always have enough IPv6s? A short comment about how we expect to allocate IPs to each ENI would be good here

@sargun
Copy link
Contributor Author

sargun commented Aug 17, 2018

Unfortunately, this patchset is much messier than intended, because it moves around a lot of code in place.

@sargun sargun merged commit b993c46 into master Aug 17, 2018
@sargun sargun deleted the ipv6 branch August 17, 2018 20:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants