Skip to content

Commit

Permalink
split vpp out from rtr
Browse files Browse the repository at this point in the history
  • Loading branch information
Giles Heron committed Jun 12, 2018
1 parent 2ef6433 commit 2032168
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 189 deletions.
40 changes: 4 additions & 36 deletions postman-collections/IETF-Netconf.json
Expand Up @@ -154,7 +154,7 @@
"response": []
},
{
"name": "Configure Interface GigabitEthernet2",
"name": "Configure CSR GigE",
"request": {
"method": "PUT",
"header": [
Expand Down Expand Up @@ -187,7 +187,7 @@
"response": []
},
{
"name": "Configure Interface GigabitEthernet0/8/0",
"name": "Configure VPP GigE",
"request": {
"method": "PUT",
"header": [
Expand All @@ -205,51 +205,19 @@
"raw": "{\n\t\"interface\": [\n\t\t{\n \t\t\"name\": \"GigabitEthernet0/8/0\",\n \t\t\"enabled\": true,\n \t\t\"description\": \"link to CSR\",\n \t\t\"type\": \"iana-if-type:ethernetCsmacd\",\n \t\t\"ietf-ip:ipv4\": {\n \t\t\t\"address\": [\n \t\t\t{\n \t\t\t\"ip\": \"192.168.1.2\",\n \t\t\t\"netmask\": \"255.255.255.0\"\n \t\t\t\t}\n \t\t\t]\n \t\t},\n \t\t\"v3po:ethernet\": {\n \t\"mtu\": 9216\n }\n\t\t}\n ]\n}"
},
"url": {
"raw": "{{cfg}}/{{rtr}}/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"raw": "{{cfg}}/{{vpp}}/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"host": [
"{{cfg}}"
],
"path": [
"{{rtr}}",
"{{vpp}}",
"ietf-interfaces:interfaces",
"interface",
"GigabitEthernet0%2F8%2F0"
]
}
},
"response": []
},
{
"name": "Get Configured Routes",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{authorization}}"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {},
"url": {
"raw": "{{cfg}}/{{rtr}}/ietf-routing:routing/routing-instance/default/routing-protocols/",
"host": [
"{{cfg}}"
],
"path": [
"{{rtr}}",
"ietf-routing:routing",
"routing-instance",
"default",
"routing-protocols",
""
]
}
},
"response": []
}
]
}
63 changes: 11 additions & 52 deletions postman-collections/VPP-Netconf.json
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "2c99aab7-8e4e-487d-85b3-6044d6e1ee38",
"_postman_id": "bf36d0f2-e872-46ad-9afa-1ed25eeb024d",
"name": "ODL VPP Netconf",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
Expand Down Expand Up @@ -91,12 +91,13 @@
"raw": "<module xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:config\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">prefix:sal-netconf-connector</type>\r\n <name>new-netconf-device2</name>\r\n <address xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">192.168.93.165</address>\r\n <port xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">2831</port>\r\n <username xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">admin</username>\r\n <password xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">admin</password>\r\n <tcp-only xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">false</tcp-only>\r\n <event-executor xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:netty\">prefix:netty-event-executor</type>\r\n <name>global-event-executor</name>\r\n </event-executor>\r\n <binding-registry xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding\">prefix:binding-broker-osgi-registry</type>\r\n <name>binding-osgi-broker</name>\r\n </binding-registry>\r\n <dom-registry xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom\">prefix:dom-broker-osgi-registry</type>\r\n <name>dom-broker</name>\r\n </dom-registry>\r\n <client-dispatcher xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:config:netconf\">prefix:netconf-client-dispatcher</type>\r\n <name>global-netconf-dispatcher</name>\r\n </client-dispatcher>\r\n <processing-executor xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:threadpool\">prefix:threadpool</type>\r\n <name>global-netconf-processing-executor</name>\r\n </processing-executor>\r\n <keepalive-executor xmlns=\"urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf\">\r\n <type xmlns:prefix=\"urn:opendaylight:params:xml:ns:yang:controller:threadpool\">prefix:scheduled-threadpool</type>\r\n <name>global-netconf-ssh-scheduled-executor</name>\r\n </keepalive-executor>\r\n</module>"
},
"url": {
"raw": "{{oper}}/{{topo}}/topology-netconf/",
"raw": "{{oper}}/network-topology:network-topology/topology/topology-netconf/",
"host": [
"{{oper}}"
],
"path": [
"{{topo}}",
"network-topology:network-topology",
"topology",
"topology-netconf",
""
]
Expand All @@ -123,15 +124,12 @@
"raw": "{\r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"enabled\": true,\r\n \"type\": \"iana-if-type:ethernetCsmacd\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:8183/restconf/config/ietf-interfaces:interfaces/interface/local0",
"protocol": "http",
"raw": "{{cfg}}/{{vpp}}/ietf-interfaces:interfaces/interface/local0",
"host": [
"{{honeycomb_address}}"
"{{cfg}}"
],
"port": "8183",
"path": [
"restconf",
"config",
"{{vpp}}",
"ietf-interfaces:interfaces",
"interface",
"local0"
Expand All @@ -156,54 +154,15 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"interface\": [\n {\n \"name\": \"GigabitEthernet0/8/0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n }\n ]\n}"
"raw": "{\n \"interface\": [\n {\n \"name\": \"GigabitEthernet0/8/0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"v3po:ethernet\": {\n \t\"mtu\": 9216\n }\n }\n ]\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"raw": "{{cfg}}/{{vpp}}/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"host": [
"{{honeycomb_address}}"
],
"port": "8183",
"path": [
"restconf",
"config",
"ietf-interfaces:interfaces",
"interface",
"GigabitEthernet0%2F8%2F0"
]
}
},
"response": []
},
{
"name": "Enable gigabit-ethernet ifc - cfg Copy",
"request": {
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "Basic YWRtaW46YWRtaW4="
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"interface\": [\n {\n \"name\": \"GigabitEthernet0/8/0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"v3po:ethernet\": {\n \"mtu\": 9216\n }\n }\n ]\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{cfg}}"
],
"port": "8183",
"path": [
"restconf",
"config",
"{{vpp}}",
"ietf-interfaces:interfaces",
"interface",
"GigabitEthernet0%2F8%2F0"
Expand Down
36 changes: 18 additions & 18 deletions postman-collections/VPP-RESTCONF.json
Expand Up @@ -60,12 +60,12 @@
"raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:8183/restconf/operational/ietf-interfaces:interfaces-state/",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/operational/ietf-interfaces:interfaces-state/",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "8183",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"operational",
Expand Down Expand Up @@ -95,12 +95,12 @@
"raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:{{router-restconf-port}}/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "{{router-restconf-port}}",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"operational",
Expand Down Expand Up @@ -131,12 +131,12 @@
"raw": "{\r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"enabled\": true,\r\n \"type\": \"iana-if-type:ethernetCsmacd\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:{{router-restconf-port}}/restconf/config/ietf-interfaces:interfaces/interface/local0",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/config/ietf-interfaces:interfaces/interface/local0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "{{router-restconf-port}}",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"config",
Expand Down Expand Up @@ -167,12 +167,12 @@
"raw": "{\n \"interface\": [\n {\n \"name\": \"GigabitEthernet0/8/0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n }\n ]\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:{{router-restconf-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "{{router-restconf-port}}",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"config",
Expand Down Expand Up @@ -203,12 +203,12 @@
"raw": "{\n \"interface\": [\n {\n \"name\": \"GigabitEthernet0/8/0\",\n \"description\": \"link to CSR\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"enabled\": true,\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"192.168.1.2\",\n \"netmask\": \"255.255.255.0\"\n }\n ]\n },\n \"ietf-ip:ipv6\": {}\n }\n ]\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:{{router-restconf-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "{{router-restconf-port}}",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"config",
Expand Down Expand Up @@ -239,12 +239,12 @@
"raw": "{\n\t\"interface\": [\n\t\t{\n \t\t\"name\": \"GigabitEthernet0/8/0\",\n \t\t\"enabled\": true,\n \t\t\"description\": \"link to CSR\",\n \t\t\"type\": \"iana-if-type:ethernetCsmacd\",\n \t\t\"ietf-ip:ipv4\": {\n \t\t\t\"address\": [\n \t\t\t{\n \t\t\t\"ip\": \"192.168.1.2\",\n \t\t\t\"netmask\": \"255.255.255.0\"\n \t\t\t\t}\n \t\t\t]\n \t\t}\n\t\t}\n ]\n}"
},
"url": {
"raw": "http://{{honeycomb_address}}:{{router-restconf-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"raw": "http://{{honeycomb-address}}:{{honeycomb-port}}/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0",
"protocol": "http",
"host": [
"{{honeycomb_address}}"
"{{honeycomb-address}}"
],
"port": "{{router-restconf-port}}",
"port": "{{honeycomb-port}}",
"path": [
"restconf",
"config",
Expand Down

0 comments on commit 2032168

Please sign in to comment.