forked from moby/moby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vendoring libnetwork commit f1c5671f1ee2133055144e566cd8b3a0ae4f0433 Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
- Loading branch information
Showing
17 changed files
with
139 additions
and
15 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
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
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
15 changes: 15 additions & 0 deletions
15
vendor/src/github.com/docker/libnetwork/drivers/bridge/setup_firewalld.go
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,15 @@ | ||
package bridge | ||
|
||
import "github.com/docker/libnetwork/iptables" | ||
|
||
func (n *bridgeNetwork) setupFirewalld(config *networkConfiguration, i *bridgeInterface) error { | ||
// Sanity check. | ||
if config.EnableIPTables == false { | ||
return IPTableCfgError(config.BridgeName) | ||
} | ||
|
||
iptables.OnReloaded(func() { n.setupIPTables(config, i) }) | ||
iptables.OnReloaded(n.portMapper.ReMapAll) | ||
|
||
return nil | ||
} |
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
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
4 changes: 4 additions & 0 deletions
4
vendor/src/github.com/docker/libnetwork/sandbox/interface_freebsd.go
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,4 @@ | ||
package sandbox | ||
|
||
// IfaceOption is a function option type to set interface options | ||
type IfaceOption func() |
2 changes: 1 addition & 1 deletion
2
vendor/src/github.com/docker/libnetwork/sandbox/namespace_unsupported.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build !linux,!windows | ||
// +build !linux,!windows,!freebsd | ||
|
||
package sandbox | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
vendor/src/github.com/docker/libnetwork/sandbox/neigh_freebsd.go
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,4 @@ | ||
package sandbox | ||
|
||
// NeighOption is a function option type to set neighbor options | ||
type NeighOption func() |
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
23 changes: 23 additions & 0 deletions
23
vendor/src/github.com/docker/libnetwork/sandbox/sandbox_freebsd.go
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 sandbox | ||
|
||
// GenerateKey generates a sandbox key based on the passed | ||
// container id. | ||
func GenerateKey(containerID string) string { | ||
maxLen := 12 | ||
if len(containerID) < maxLen { | ||
maxLen = len(containerID) | ||
} | ||
|
||
return containerID[:maxLen] | ||
} | ||
|
||
// NewSandbox provides a new sandbox instance created in an os specific way | ||
// provided a key which uniquely identifies the sandbox | ||
func NewSandbox(key string, osCreate bool) (Sandbox, error) { | ||
return nil, nil | ||
} | ||
|
||
// GC triggers garbage collection of namespace path right away | ||
// and waits for it. | ||
func GC() { | ||
} |
2 changes: 1 addition & 1 deletion
2
vendor/src/github.com/docker/libnetwork/sandbox/sandbox_unsupported.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build !linux,!windows | ||
// +build !linux,!windows,!freebsd | ||
|
||
package sandbox | ||
|
||
|
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