charms.openstack/unit_tests/odl_responses.py
Liam Young 759530dabe Added ovs, odl and pci modules
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
2016-09-14 13:58:05 +00:00

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"
}
]
}
}"""