153 lines
4.2 KiB
JavaScript
153 lines
4.2 KiB
JavaScript
config = {
|
|
"switches": [{
|
|
"switch": {
|
|
"ip": "172.29.8.40",
|
|
"credential": {
|
|
"version": "v2c",
|
|
"community": "public"
|
|
}
|
|
}
|
|
}, {
|
|
"switch": {
|
|
"ip": "172.29.8.41",
|
|
"credential": {
|
|
"version": "v2c",
|
|
"community": "public"
|
|
}
|
|
}
|
|
}, {
|
|
"switch": {
|
|
"ip": "172.29.8.42",
|
|
"credential": {
|
|
"version": "v2c",
|
|
"community": "public"
|
|
}
|
|
}
|
|
}],
|
|
"security": {
|
|
"server_credentials": {
|
|
"username": "root",
|
|
"password": "root"
|
|
},
|
|
"service_credentials": {
|
|
"username": "service",
|
|
"password": "admin"
|
|
},
|
|
"console_credentials": {
|
|
"username": "console",
|
|
"password": "admin"
|
|
}
|
|
},
|
|
"networking": {
|
|
"interfaces": {
|
|
"management": {
|
|
"ip_start": "10.10.10.100",
|
|
"ip_end": "10.10.10.255",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "10.10.10.1",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
},
|
|
"tenant": {
|
|
"ip_start": "192.168.100.100",
|
|
"ip_end": "192.168.100.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.100.1",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
},
|
|
"public": {
|
|
"ip_start": "172.29.3.100",
|
|
"ip_end": "172.29.3.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "172.29.3.1",
|
|
"nic": "eth1",
|
|
"promisc": 1
|
|
},
|
|
"storage": {
|
|
"ip_start": "172.16.128.10",
|
|
"ip_end": "172.16.128.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "172.16.128.1",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
}
|
|
},
|
|
"global": {
|
|
"nameservers": "4.4.4.4,8.8.8.8",
|
|
"search_path": "ods.com",
|
|
"gateway": "172.19.100.1",
|
|
"proxy": "",
|
|
"ntp_server": ""
|
|
}
|
|
}
|
|
};
|
|
|
|
config_demo = {
|
|
"switches": [{
|
|
"switch": {
|
|
"ip": "127.0.0.1",
|
|
"credential": {
|
|
"version": "v2c",
|
|
"community": "public"
|
|
}
|
|
}
|
|
}],
|
|
"security": {
|
|
"server_credentials": {
|
|
"username": "root",
|
|
"password": "huawei123"
|
|
},
|
|
"service_credentials": {
|
|
"username": "service",
|
|
"password": "huawei123"
|
|
},
|
|
"console_credentials": {
|
|
"username": "console",
|
|
"password": "huawei123"
|
|
}
|
|
},
|
|
"networking": {
|
|
"interfaces": {
|
|
"management": {
|
|
"ip_start": "33.33.33.100",
|
|
"ip_end": "33.33.33.255",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "33.33.33.10",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
},
|
|
"tenant": {
|
|
"ip_start": "192.168.100.100",
|
|
"ip_end": "192.168.100.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.100.1",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
},
|
|
"public": {
|
|
"ip_start": "172.29.3.100",
|
|
"ip_end": "172.29.3.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "172.29.3.1",
|
|
"nic": "eth1",
|
|
"promisc": 1
|
|
},
|
|
"storage": {
|
|
"ip_start": "172.16.128.10",
|
|
"ip_end": "172.16.128.200",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "172.16.128.1",
|
|
"nic": "eth0",
|
|
"promisc": 0
|
|
}
|
|
},
|
|
"global": {
|
|
"nameservers": "33.33.33.10",
|
|
"search_path": "ods.com",
|
|
"gateway": "33.33.33.10",
|
|
"proxy": "http://33.33.33.10:3128",
|
|
"ntp_server": "33.33.33.10"
|
|
}
|
|
}
|
|
}; |