759530dabe
Added three new modules for managing OVS, ODL and PCI devices. They exist in the new charms_openstack/{sdn,devices} directories. The modules have come from the git@github.com:openstack/charm-openvswitch-odl.git charm and are largely unaltered apart from new Doc strings and unit tests. Change-Id: I3e44afeb866a7551883da04a699af3807853a83e
75 lines
1.4 KiB
Python
75 lines
1.4 KiB
Python
NEUTRON_NET_MAP = """
|
|
{
|
|
"neutron_net_map": {
|
|
"physicalNetwork": [
|
|
{
|
|
"name": "net_d12",
|
|
"device": [
|
|
{
|
|
"device-name": "C240-M4-6",
|
|
"device-type": "vhostuser",
|
|
"interface": [
|
|
{
|
|
"interface-name": "TenGigabitEthernet6/0/0",
|
|
"macAddress": "84:b8:02:2a:5f:c3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "net_d11",
|
|
"device": [
|
|
{
|
|
"device-name": "C240-M4-6",
|
|
"device-type": "vhostuser",
|
|
"interface": [
|
|
{
|
|
"interface-name": "TenGigabitEthernet7/0/0",
|
|
"macAddress": "84:b8:02:2a:5f:c4"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "net_d10",
|
|
"device": [
|
|
{
|
|
"device-name": "C240-M4-6",
|
|
"device-type": "vhostuser",
|
|
"interface": [
|
|
{
|
|
"interface-name": "TenGigabitEthernet6/0/0",
|
|
"macAddress": "84:b8:02:2a:5f:c3"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}"""
|
|
|
|
NEUTRON_NET_MAP_EMPTY = """
|
|
{
|
|
"neutron_net_map": {
|
|
"physicalNetwork": [
|
|
]
|
|
}
|
|
}"""
|
|
|
|
ODL_REGISTERED_NODES = """
|
|
{
|
|
"nodes": {
|
|
"node": [
|
|
{
|
|
"id": "C240-M4-6"
|
|
},
|
|
{
|
|
"id": "controller-config"
|
|
}
|
|
]
|
|
}
|
|
}"""
|