Skip to content
Snippets Groups Projects
Commit ced739ea authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

listen for all

parent 772b062e
No related branches found
No related tags found
2 merge requests!109Integration test,!90Develop
Pipeline #66337 passed with warnings
CliSocket = "localhost:55055" CliSocket = ":55055"
db.socket = "bolt://172.17.0.4:7687" db.socket = "bolt://172.17.0.4:7687"
db.user = "" db.user = ""
db.password = "" db.password = ""
......
...@@ -28,7 +28,7 @@ func (c *Core) Initialize(IsRunningChannel chan bool) error { ...@@ -28,7 +28,7 @@ func (c *Core) Initialize(IsRunningChannel chan bool) error {
} }
// Set config defaults // Set config defaults
viper.SetDefault("socket", "localhost:55055") viper.SetDefault("socket", ":55055")
// Set config path and read config // Set config path and read config
viper.SetConfigName("gosdn") viper.SetConfigName("gosdn")
......
...@@ -56,6 +56,11 @@ resource "docker_image" "ceos" { ...@@ -56,6 +56,11 @@ resource "docker_image" "ceos" {
# Create a new docker network # Create a new docker network
resource "docker_network" "danet" { resource "docker_network" "danet" {
name = "danet" name = "danet"
ipam_config {
subnet = "172.100.100.0/24"
}
} }
# create controller container # create controller container
...@@ -71,6 +76,7 @@ resource "docker_container" "gosdn" { ...@@ -71,6 +76,7 @@ resource "docker_container" "gosdn" {
networks_advanced { networks_advanced {
name = docker_network.danet.name name = docker_network.danet.name
ipv4_address = "172.100.100.10"
} }
} }
...@@ -83,6 +89,7 @@ resource "docker_container" "ceos" { ...@@ -83,6 +89,7 @@ resource "docker_container" "ceos" {
networks_advanced { networks_advanced {
name = docker_network.danet.name name = docker_network.danet.name
ipv4_address = "172.100.100.20"
} }
command = ["/sbin/init", command = ["/sbin/init",
...@@ -92,7 +99,19 @@ resource "docker_container" "ceos" { ...@@ -92,7 +99,19 @@ resource "docker_container" "ceos" {
"systemd.setenv=CEOS=1", "systemd.setenv=CEOS=1",
"systemd.setenv=EOS_PLATFORM=ceoslab", "systemd.setenv=EOS_PLATFORM=ceoslab",
"systemd.setenv=container=docker", "systemd.setenv=container=docker",
"systemd.setenv=MAPETH0=1", "MGMT_INTF=eth0"]
env = ["INTFTYPE=eth",
"ETBA=4",
"SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1",
"CEOS=1",
"EOS_PLATFORM=ceoslab",
"container=docker",
"MGMT_INTF=eth0"] "MGMT_INTF=eth0"]
privileged = true privileged = true
volumes {
host_path = "/usr/local/etc/terraform/arista"
container_path = "/mnt/flash"
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment