-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network builder and platform APIs (#3939)
Added the network builder and platform APIs into the shared library package. Network builder is intended to act as the API to be consumed by the agent to setup networking resources on the host. Network builder invokes the platform APIs to execute platform specific operations like creation of network namespaces etc. --------- Co-authored-by: Samuel Konat <[email protected]>
- Loading branch information
Showing
21 changed files
with
913 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 36 additions & 32 deletions
68
...thub.com/aws/amazon-ecs-agent/ecs-agent/netlib/model/networkinterface/networkinterface.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
...m/aws/amazon-ecs-agent/ecs-agent/netlib/model/networkinterface/networkinterface_status.go
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/netlib/model/status/network_status.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package netlib | ||
|
||
const ( | ||
taskID = "random-task-id" | ||
eniMAC = "f0:5c:89:a3:ab:01" | ||
eniName = "f05c89a3ab01" | ||
eniMAC2 = "f0:5c:89:a3:ab:02" | ||
eniName2 = "f05c89a3ab02" | ||
eniID = "eni-abdf1234" | ||
eniID2 = "eni-abdf12342" | ||
dnsName = "amazon.com" | ||
nameServer = "10.1.0.2" | ||
nameServer2 = "10.2.0.2" | ||
ipv4Addr = "10.1.0.196" | ||
ipv4Addr2 = "10.2.0.196" | ||
ipv6Addr = "2600:1f13:4d9:e611:9009:ac97:1ab4:17d1" | ||
ipv6Addr2 = "2600:1f13:4d9:e611:9009:ac97:1ab4:17d2" | ||
subnetGatewayCIDR = "10.1.0.1/24" | ||
subnetGatewayCIDR2 = "10.2.0.1/24" | ||
netNSNamePattern = "%s-%s" | ||
searchDomainName = "us-west-2.test.compute.internal" | ||
netNSPathDir = "/var/run/netns/" | ||
) |
Oops, something went wrong.