summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Dec <wdec@cisco.com>2016-07-19 19:54:25 +0200
committerWojciech Dec <wdec@cisco.com>2016-08-16 09:08:38 +0200
commitbb453174ea2a5fce7d6ad7c0e68f758174e5d294 (patch)
treee623ce4cf20169f8f7d342ebadc574c719a4abf1
parent2f26b994ca44193a187dbf98c27225d219d17206 (diff)
Proxy ARP reader/writer
Change-Id: Iabb947e89cbb906e78e4d87bc99fb5e8d09e495c Signed-off-by: Wojciech Dec <wdec@cisco.com>
-rw-r--r--v3po/api/src/main/yang/v3po.yang24
-rw-r--r--v3po/postman_rest_collection.json1383
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizer.java117
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfacesstate/ProxyArpCustomizer.java82
-rw-r--r--v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesHoneycombWriterModule.java7
-rw-r--r--v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesStateHoneycombReaderModule.java6
-rw-r--r--v3po/v3po2vpp/src/test/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizerTest.java50
7 files changed, 1004 insertions, 665 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index e99da965c..fbcb76ccb 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -400,6 +400,22 @@ module v3po {
}
}
+ grouping proxy-arp-attributes {
+ description
+ "Parameters for configuring Proxy ARP on interfaces.";
+
+ leaf vrf-id {
+ type uint32;
+ default 0;
+ }
+ leaf low-addr {
+ type inet:ipv4-address;
+ }
+ leaf high-addr {
+ type inet:ipv4-address;
+ }
+ }
+
grouping acl-base-attributes {
description
"Defines references to classify tables.
@@ -506,6 +522,10 @@ module v3po {
uses vxlan-gpe-base-attributes;
}
+ container proxy-arp {
+ uses proxy-arp-attributes;
+ }
+
container acl {
uses acl-base-attributes;
}
@@ -582,6 +602,10 @@ module v3po {
uses l2-base-attributes;
}
+ container proxy-arp {
+ uses proxy-arp-attributes;
+ }
+
container acl {
uses acl-base-attributes;
}
diff --git a/v3po/postman_rest_collection.json b/v3po/postman_rest_collection.json
index c94794ebd..e01ddf768 100644
--- a/v3po/postman_rest_collection.json
+++ b/v3po/postman_rest_collection.json
@@ -1,179 +1,188 @@
{
- "id": "58101efe-318b-fd9c-b1e8-096101036acf",
- "name": "Honeycomb RESTCONF calls",
+ "id": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "name": "Honeycomb RESTCONF calls copy",
"description": "Common mgmt operations on VPP using Honeycomb REST interface",
"order": [
- "bdd8770d-6737-9058-37f2-e4986315b71f",
- "f09e1447-a795-bfd7-bfc5-5a7be330bb4e",
- "b3309c95-8050-5086-a285-b1d2403b0ae5",
- "9961968f-53f3-38fa-42e9-7c2fee03467f",
- "4b3ec3d9-250f-2777-b150-ba60fc43baec",
- "301d8d6c-9e72-1c49-b462-28d0afaab523",
- "c2e8b44a-c868-84b7-87ef-a6d9c8d97079",
- "81e67bcf-9af7-5951-84a3-3d12e35273b6"
+ "45366f9f-dd8d-8ecd-6696-c0b15cdd432a",
+ "ea99eaa4-781f-72b5-9324-7ea68612848d",
+ "6bf54e03-4e72-0c77-064e-e387c4fec898",
+ "af809b2c-09bb-3495-433f-87f6518d1803",
+ "2b83ff16-db48-520a-4e81-64efc443e044",
+ "e9144a8b-0dd3-16e9-7793-e2fefe46b57d",
+ "f7cf288f-03c4-2b16-c54e-7668a49f6080",
+ "2193764e-0c9e-3500-65e5-defbd7752f31"
],
"folders": [
{
- "id": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
+ "id": "0427ac53-1e1f-941c-d946-bc957138e36d",
"name": "ACL",
"description": "",
"order": [
- "fcf13df2-42a1-d949-9334-079cd740fc7b",
- "a05caf2c-8c0b-168c-1348-2764a710a51c",
- "72989f8a-5484-dc0f-772f-cec27ff71337",
- "59129348-06d4-8b95-792d-579805c7443d",
- "ec293c86-ce0f-568c-eaaa-c966387a8824",
- "504f9507-132b-074f-e5b2-f01df759631f",
- "6aa5b019-4dbe-5016-a6a9-db28db083d5b",
- "da4da994-c357-d325-9206-fed6a8aa9838",
- "ea55b1b2-c87f-36dc-7f57-5a0e927973ae",
- "d225a46a-a7c6-712f-b8d2-76beedfb68c6",
- "17da2acd-f9ce-398b-bbf1-7e2072768091",
- "8ba5dc84-2b75-c442-4166-640f53bbadc7"
+ "88d1d68f-6521-066a-c6b0-8c73c9a8bf93",
+ "55c3dfd4-11c9-e5cc-c52e-26ec9e519161",
+ "a7b0a0f8-b35f-5e15-3a5e-289f840000de",
+ "83684dd6-3e21-664e-237e-fc125f3c0412",
+ "39ae2e06-c48e-95f0-74da-0c5b7232699a",
+ "3fde45c8-d17c-4511-39db-172a0777f455",
+ "d135c74e-cc27-0c64-3ff6-45795bff14fe",
+ "cc855d48-7c5b-ec67-b089-90d2f34bc7cc",
+ "4bdaa6f2-ea68-99e3-ff16-99b3b9772a9c",
+ "d3c5268f-eccb-10a7-4e24-69a568fde4c2",
+ "05fc7b6a-25c1-c5af-d013-a1477b9287d9",
+ "f6d01ff6-5177-3159-a46c-7c55b2271eda"
],
- "owner": "652751",
+ "owner": "695772",
"collectionId": "e9ba4e80-fb4d-1eae-07e7-97b323164130"
},
{
- "id": "04405667-f0ce-7af3-a627-7bf6f47eaad6",
+ "id": "415867f0-cdab-3ae4-9e42-a5b444829f5e",
+ "name": "Bridge Domain management",
+ "description": "",
+ "order": [
+ "693e6beb-d88f-a566-35aa-49a2364c0620",
+ "fe6f90d8-6997-1dcf-3b73-2864c8695398",
+ "12a9f03c-46f9-07c3-a9d4-1b79ef2b2275",
+ "0f1ae6c5-054a-9765-014d-2f9e86e1f076",
+ "d2550a8f-b694-89c1-b161-d1ae78ead36c",
+ "f5f9a89d-3082-0e3f-acb1-50f5b021773c",
+ "35ca3437-95e4-390d-e46b-379b48b2c821",
+ "4df29897-4c65-05d3-fded-6c26e5b7d1be",
+ "dbb104c1-2702-e413-34a0-f22cab696268",
+ "7907c688-8b56-f6ea-9dc9-c4c7443d9833",
+ "cca4ee8d-25a1-424d-9c64-1287cd408c9a",
+ "ae426268-fd80-2da7-00a2-b2856a5f2d6c",
+ "491533f4-0bd3-237f-0821-6b68aaf275ff"
+ ],
+ "owner": "695772",
+ "collectionId": "e9ba4e80-fb4d-1eae-07e7-97b323164130"
+ },
+ {
+ "id": "a147f28a-7a64-a09b-85e2-1dd201b32c15",
"name": "GRE-TUNNEL",
"description": "",
"order": [
- "38a649df-279a-94b5-2f56-1024094d591f",
- "ae8930f5-48a8-e4a0-cca9-cfa18ebdc848"
+ "8ef770c1-edbf-f792-b9fa-4e4ab598090a",
+ "70b23783-3fb3-b2a9-3eab-de545ad9871e"
],
- "owner": "652751"
+ "owner": "695772"
},
{
- "id": "05ae0a9b-545c-9171-b94c-7c8314a47892",
+ "id": "7b451147-ea78-d975-a181-3cfd854150f3",
"name": "IP",
"description": "",
"order": [
- "318660d4-dbcc-8873-8e91-b226fa5ad6d4",
- "5c19eb1f-8ebe-6ebd-e5ba-d728b1321fec",
- "30cbc0a7-9f63-98a8-9def-6e835a764baf",
- "689d7b5c-2e8d-21ae-3435-7ed68958b9d0",
- "1956ab55-9d9d-0cff-9e33-ea9c4f4c4cfb",
- "0c2ac859-4a06-e421-92c4-b57c408c0d55",
- "535a4a39-5aa7-6626-91c7-100a8f1148df",
- "d067474e-9df0-11ab-dc5a-05ffa1e4e54e",
- "85f4b9e4-40cd-c9ec-eb9d-412b214cbd09",
- "302bcd68-0ea1-3f55-72d7-0701b64fe356"
+ "c2ead851-b5db-fcdc-7b8d-0354a323a385",
+ "1f2f593a-258d-5ef8-02aa-1c4da48e4e41",
+ "515a4386-0bb6-7d73-e9c6-94c044fcd0c4",
+ "bd0e559b-ac61-cecf-4a98-588445ed2435",
+ "53d05858-e4a9-ae44-21a7-48bef9bfd72b",
+ "0cb8da80-a44c-7946-f4ba-9c43bb6aa6d0",
+ "2a88e0be-d775-a6d9-c16d-e4f133b9c23d",
+ "f178b4ba-6251-2ec8-5136-2c1b27607c63",
+ "6e07daba-1cbd-11a7-cd3f-c58f6e24d3c5",
+ "7c7284a9-df62-d272-77a5-9d2d326ffaee"
],
- "owner": "652751"
+ "owner": "695772"
},
{
- "id": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245",
- "name": "Bridge Domain management",
+ "id": "c0e3752c-3dfa-8ae5-1456-834c95122afd",
+ "name": "Proxy Arp",
"description": "",
"order": [
- "8a79e3b2-70ea-cf56-3317-34fe1dfe4e7b",
- "730a10c2-5e29-1a83-1b4d-fb945be02df4",
- "c357b39f-537c-8e55-a4f3-130499ef5812",
- "3c4f4168-6861-c56d-6499-581f4b91f8af",
- "627d4183-240b-5e4e-2f40-c283c600a137",
- "c438ec30-8e00-e644-f65d-ca62db804a86",
- "606ef146-fa19-b110-f7a5-abd3d2ae8aa2",
- "d67e5cbf-73ab-6030-ea0d-9eee69e3f8e3",
- "f217a13f-6b83-8ce7-e214-ffce25eeb49f",
- "5e4dbb7f-7527-da2c-39b1-9625163e7198",
- "d26d5396-483f-092f-5695-7a4f9de3b2e3",
- "a042fef8-8aa6-3d79-a623-05f32e1f4cf5",
- "ee243708-16f4-a3fc-6498-f66dcc82afa7"
+ "c13fb7e2-f445-dfe1-0a77-02c464f8c85d",
+ "c45fc816-8e66-d51e-dbad-140bbb1d8ca5"
],
- "owner": "652751",
- "collectionId": "e9ba4e80-fb4d-1eae-07e7-97b323164130"
+ "owner": "695772"
},
{
- "id": "1919a15e-e9a8-679d-ab82-c6092d66275d",
+ "id": "bc1b64a3-6ebe-92f2-86e4-dc5ce4736547",
"name": "TAP",
"description": "",
"order": [
- "1238e8c7-0132-4e95-e89c-60bfd29c7cbe",
- "022735ea-96a2-5620-899c-440865a29b5d",
- "f5cee354-228f-6009-b7fc-25e5cdc7160a",
- "b486e4ed-9b5e-0a20-af33-5a68c0064c93"
+ "2ac868b4-0625-d8ac-8531-dc4a50db77b2",
+ "c27c86bb-a6cd-c4e8-8e5d-468bf7194654",
+ "4cb0154d-bcd7-16e6-f9ce-00a6557df9b2",
+ "6370667b-fae6-6731-a5c2-3b87a074b7c6"
],
- "owner": "652751"
+ "owner": "695772"
},
{
- "id": "57e860c0-0c9a-2511-8241-7d64cc646b29",
+ "id": "0b5df1f1-57ca-15d3-afde-ab0779938ecd",
"name": "VHOST",
"description": "",
"order": [
- "40ce65aa-7c50-93e7-8066-f5d2fd5e027b",
- "1786cca2-94b0-1d8b-62cc-b3c0e268807d",
- "6c41fbe8-ecc8-c764-c98b-5e5bc1099ab3"
+ "f925a3d2-9637-13d7-cdca-104441c47448",
+ "935a92b4-f1c3-5eb9-ccc9-d8e63792b4ca",
+ "99f1a758-813a-b7bd-016b-904fe8171386"
],
- "owner": "652751"
+ "owner": "695772"
},
{
- "id": "55357445-d54b-066c-3bea-c200cebf1e92",
+ "id": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
"name": "VLAN",
"description": "",
"order": [
- "12554bf7-b373-9c79-a86d-7106040cb49c",
- "26885af7-2c6f-dcfe-f8f8-d0c020b1f6a1",
- "2557b257-f9cb-dc1c-b186-9b8396c8f61a",
- "edb51cd5-a0dc-2023-ac6f-fadf149fe03f",
- "41613fb5-7750-87a2-988c-90d5760eaab6",
- "c56166bc-1f79-3688-4b39-c0830da26ffe",
- "edad8622-df73-c895-d2d1-8b2659abdf03",
- "58cf610b-0df6-8ef1-6d10-7fe97ce85d30"
+ "6df6e635-ec16-f694-0fe7-80fbfca7ea2b",
+ "36d2ba4c-8fea-24a6-9773-335e75862b3b",
+ "13e13e9e-6c4b-bea3-7bd3-10d77fc9e523",
+ "f14032c0-0cf5-eda6-17ee-df25cdd2c9a8",
+ "ada5de75-8ce4-115b-6205-ee09f8211a2b",
+ "2c54bf93-bf67-7e2e-5444-a914c14144f1",
+ "cca4b409-d9ce-7d1c-ff79-0569001d39aa",
+ "2299c19c-5e6e-9f5b-4dea-6b8fdd40e1d1"
],
- "owner": "652751",
+ "owner": "695772",
"collectionId": "e9ba4e80-fb4d-1eae-07e7-97b323164130"
},
{
- "id": "5d0a3c92-b5ab-8108-8caf-c62b6d974ced",
+ "id": "c2e53423-ddf1-f711-db51-f5f9df7e25ec",
"name": "VXLAN-GPE-TUNNEL",
"description": "",
"order": [
- "6c8e7d91-388b-8dfd-8e8b-544adc9ae7bd",
- "2dde41bb-7ece-e266-30bf-c3e3e8e266b0"
+ "19aa3f47-1a8b-5b86-6e93-6650e9189f09",
+ "9b1de0b6-5d2f-dc90-a51d-3b77babab229"
],
- "owner": "652751"
+ "owner": "695772"
},
{
- "id": "0f8929c0-21da-0d4b-fe32-4c3ef07dacde",
+ "id": "c4d78923-3fd3-a2d5-5383-a6f82a8ef0ea",
"name": "VXLAN-TUNNEL",
"description": "",
"order": [
- "ba5adf9b-40d6-a4e7-8a91-840d06f250d6",
- "b80137cb-93ed-8f6a-723d-59f9ff18ce39"
+ "54f60871-b507-3aa2-9a31-e3305b19d69a",
+ "1e5faeef-fcfb-4a6c-2ead-2c49af9e2325"
],
- "owner": "652751"
+ "owner": "695772"
}
],
"timestamp": 1460119141419,
- "owner": "652751",
- "remoteLink": "",
+ "owner": "695772",
"public": false,
"published": false,
"requests": [
{
- "id": "022735ea-96a2-5620-899c-440865a29b5d",
+ "id": "05fc7b6a-25c1-c5af-d013-a1477b9287d9",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462796722186,
- "name": "Add complex tap ifc - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467377830897,
+ "name": "Remove classify table0",
+ "description": "Removes classify table0. Corresponds to the following command:\n\nvppctl classify table del table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp2\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp2\",\r\n \"mac\" : \"00:ff:ff:ff:ff:ff\",\r\n \"device-instance\" : 55\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "1919a15e-e9a8-679d-ab82-c6092d66275d"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "0c2ac859-4a06-e421-92c4-b57c408c0d55",
+ "id": "0cb8da80-a44c-7946-f4ba-9c43bb6aa6d0",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
"url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4/address/127.0.0.1",
"preRequestScript": "",
@@ -188,15 +197,15 @@
"time": 1466497187475,
"name": "Remove ipv4 from local0 interface - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
"rawModeData": ""
},
{
- "id": "1238e8c7-0132-4e95-e89c-60bfd29c7cbe",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp",
+ "id": "0f1ae6c5-054a-9765-014d-2f9e86e1f076",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:l2",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -206,39 +215,39 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462535811974,
- "name": "Add simple tap ifc -cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465805545425,
+ "name": "Add local0 to bridge domain",
+ "description": "Adds l2 interconnection of bridge-based type to local0 interface.\nCorresponds to the following command:\n\nvppctl set interface l2 bridge local0 [bd_id]\n\nTo verify invoke:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "1919a15e-e9a8-679d-ab82-c6092d66275d",
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp\"\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "rawModeData": "{\r\n \"l2\": {\r\n \"bridge-domain\": \"testBD\",\r\n \"split-horizon-group\": 1,\r\n \"bridged-virtual-interface\": \"false\"\r\n }\r\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "12554bf7-b373-9c79-a86d-7106040cb49c",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1",
+ "id": "12a9f03c-46f9-07c3-a9d4-1b79ef2b2275",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/operational/v3po:vpp-state/bridge-domains/bridge-domain/testBD",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464804304987,
- "name": "Add sub interface - cfg",
- "description": "Adds sub interface. Corresponsing vpp cli command:\n\nvppctl create sub GigabitEthernet0/9/0 1 dot1q 100 inner-dot1q any\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465806752970,
+ "name": "Show bridge domain - oper",
+ "description": "Shows testBD bridge domain operational state.\nCorresponds to invoking:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": "{\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": \"1\",\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": \"0\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n },\r\n {\r\n \"index\": \"1\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": \"true\"\r\n }\r\n },\r\n \"enabled\": \"false\"\r\n }\r\n ]\r\n}"
+ "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "1786cca2-94b0-1d8b-62cc-b3c0e268807d",
+ "id": "13e13e9e-6c4b-bea3-7bd3-10d77fc9e523",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -248,81 +257,82 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462891483790,
- "name": "Modify vhost user ifc - cfg",
- "description": "Modifies vhost-user interface socket.\nTo verify invoke:\n\nvppctl show vhost-user",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464804333865,
+ "name": "Enable GigabitEthernet0/9/0.1 interface - cfg",
+ "description": "Enables GigabitEthernet0/9/0.1 sub interface. Equivalent vppctl command:\n\nvppctl set in state GigabitEthernet0/9/0.1 up\n\nTo enable sub interface, super interface should be enabled first.\n\nTo verify invoke:\n\nvppctl show int",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vhost1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vhost-user\",\r\n \"enabled\": \"true\",\r\n \"vhost-user\" : {\r\n \"socket\": \"/tmp/soc2\",\r\n \"role\": \"server\"\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "57e860c0-0c9a-2511-8241-7d64cc646b29"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": "{\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": \"1\",\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": \"0\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n },\r\n {\r\n \"index\": \"1\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": \"true\"\r\n }\r\n },\r\n \"enabled\": \"true\"\r\n }\r\n ]\r\n}"
},
{
- "id": "17da2acd-f9ce-398b-bbf1-7e2072768091",
+ "id": "19aa3f47-1a8b-5b86-6e93-6650e9189f09",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467377830897,
- "name": "Remove classify table0",
- "description": "Removes classify table0. Corresponds to the following command:\n\nvppctl classify table del table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464768006369,
+ "name": "Add vxlan-gpe - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": ""
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun3\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"vxlan-gpe\" : {\r\n \"local\" : \"192.168.50.76\",\r\n \"remote\" : \"192.168.50.71\",\r\n \"vni\" : \"9\",\r\n \"next-protocol\" : \"ethernet\",\r\n \"encap-vrf-id\" : \"0\",\r\n \"decap-vrf-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "c2e53423-ddf1-f711-db51-f5f9df7e25ec"
},
{
- "id": "1956ab55-9d9d-0cff-9e33-ea9c4f4c4cfb",
+ "id": "1e5faeef-fcfb-4a6c-2ead-2c49af9e2325",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4/address/127.0.0.1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
- "helperAttributes": {},
- "time": 1466496859574,
- "name": "Set ipv4 local0 interface - cfg",
+ "helperAttributes": "{}",
+ "time": 1462892071867,
+ "name": "Delete virtual ifc - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"127.0.0.1\",\r\n \"prefix-length\" : \"24\"\r\n }]\r\n}"
+ "folder": "c4d78923-3fd3-a2d5-5383-a6f82a8ef0ea",
+ "timestamp": null,
+ "rawModeData": ""
},
{
- "id": "2557b257-f9cb-dc1c-b186-9b8396c8f61a",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1",
- "preRequestScript": "",
+ "id": "1f2f593a-258d-5ef8-02aa-1c4da48e4e41",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/ipv4/neighbor/172.16.0.2",
+ "preRequestScript": null,
"pathVariables": {},
"method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
- "tests": "",
+ "tests": null,
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464804333865,
- "name": "Enable GigabitEthernet0/9/0.1 interface - cfg",
- "description": "Enables GigabitEthernet0/9/0.1 sub interface. Equivalent vppctl command:\n\nvppctl set in state GigabitEthernet0/9/0.1 up\n\nTo enable sub interface, super interface should be enabled first.\n\nTo verify invoke:\n\nvppctl show int",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1466498409820,
+ "name": "Ip Neighbour Add",
+ "description": "This call doesnt have respective dump call,because of performance issues(dump for this can contain millions of entries). Data inserted throught this call can be verified by calling vppctl show ip fib|arp",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": "{\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": \"1\",\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": \"0\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n },\r\n {\r\n \"index\": \"1\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": \"true\"\r\n }\r\n },\r\n \"enabled\": \"true\"\r\n }\r\n ]\r\n}"
+ "rawModeData": "{\n \n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n \n}\n",
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3"
},
{
- "id": "26885af7-2c6f-dcfe-f8f8-d0c020b1f6a1",
+ "id": "2193764e-0c9e-3500-65e5-defbd7752f31",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -332,18 +342,17 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464804325716,
- "name": "Enable GigabitEthernet0/9/0 interface - cfg",
- "description": "Enables GigabitEthernet0/9/0 interface. Equivalent vppctl command:\n\nvppctl set in state GigabitEthernet0/9/0 up\n\nNeeded to enable sub interface.\n\nTo verify invoke:\n\nvppctl show int",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1460640004531,
+ "name": "Set vrf id for local0 - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"GigabitEthernet0/9/0\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"v3po:ethernet\": {\r\n \"mtu\": 9216\r\n },\r\n \"enabled\": true,\r\n \"vpp-vlan:sub-interfaces\": {\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": 1,\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n },\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": true\r\n }\r\n },\r\n \"enabled\": false\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"description\": \"for testing purposes only\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"7\"\r\n },\r\n \"v3po:ethernet\": {\r\n \"mtu\": 64\r\n }\r\n }\r\n ]\r\n \r\n}"
},
{
- "id": "2dde41bb-7ece-e266-30bf-c3e3e8e266b0",
+ "id": "2299c19c-5e6e-9f5b-4dea-6b8fdd40e1d1",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
"preRequestScript": "",
"pathVariables": {},
"method": "DELETE",
@@ -353,18 +362,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464764638498,
- "name": "Delete vxlan-gpe - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464804511683,
+ "name": "Disable tag-rewrite - cfg",
+ "description": "Disables tag-rewrite operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 disable\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "",
- "folder": "5d0a3c92-b5ab-8108-8caf-c62b6d974ced"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": ""
},
{
- "id": "301d8d6c-9e72-1c49-b462-28d0afaab523",
+ "id": "2a88e0be-d775-a6d9-c16d-e4f133b9c23d",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4/address/127.0.0.1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -374,81 +383,81 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460540047356,
- "name": "Enable local0 interface - cfg",
+ "time": 1466497176571,
+ "name": "Set ipv4 local0 interface - cfg netmask",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"v3po:ethernet\": {\r\n \"mtu\": 64\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
+ "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"127.0.0.1\",\r\n \"netmask\": \"255.255.255.128\"\r\n }]\r\n}"
},
{
- "id": "302bcd68-0ea1-3f55-72d7-0701b64fe356",
+ "id": "2ac868b4-0625-d8ac-8531-dc4a50db77b2",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/ipv4/address/1.2.3.4",
- "pathVariables": {},
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp",
"preRequestScript": "",
+ "pathVariables": {},
"method": "PUT",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
"data": [],
"dataMode": "raw",
- "name": "Set ipv4 for sub-interface - cfg",
- "description": "Correponds to the following command:\n\nvppctl set interface ip address GigabitEthernet0/9/0.1 1.2.3.4/8\n\nTo verify invoke:\nvppctl show int",
- "descriptionFormat": "html",
- "time": 1467117222646,
"version": 2,
- "responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"1.2.3.4\",\r\n \"prefix-length\" : \"8\"\r\n }]\r\n}"
+ "time": 1462535811974,
+ "name": "Add simple tap ifc -cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "responses": [],
+ "folder": "bc1b64a3-6ebe-92f2-86e4-dc5ce4736547",
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp\"\r\n }\r\n }\r\n ]\r\n \r\n}"
},
{
- "id": "30cbc0a7-9f63-98a8-9def-6e835a764baf",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/ipv4/neighbor/172.16.0.2",
- "preRequestScript": null,
+ "id": "2b83ff16-db48-520a-4e81-64efc443e044",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/operational/naming-context:contexts",
"pathVariables": {},
- "method": "DELETE",
+ "preRequestScript": "",
+ "method": "GET",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"data": [],
"dataMode": "raw",
+ "name": "List naming contexts - context",
+ "description": "List mapping context stored in context datastore",
+ "descriptionFormat": "html",
+ "time": 1463556756647,
"version": 2,
- "tests": null,
+ "responses": [],
+ "tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1466498502212,
- "name": "Ip Neighbour Delete",
- "description": "Verify this call by invoking vppctl show ip fib|arp",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
- "responses": [],
- "rawModeData": "{\n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n}\n",
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892"
+ "rawModeData": "{\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}"
},
{
- "id": "318660d4-dbcc-8873-8e91-b226fa5ad6d4",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/ipv4/neighbor/172.16.0.2",
- "preRequestScript": null,
+ "id": "2c54bf93-bf67-7e2e-5444-a914c14144f1",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
+ "preRequestScript": "",
"pathVariables": {},
- "method": "GET",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
- "tests": null,
+ "tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1466498440466,
- "name": "Ip Neighbour Get",
- "description": "This call returns data stored in honeycomb,to verify actual data stored by vpp, call vppctl show ip fib|arp",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464805111410,
+ "name": "Enable tag-rewrite pop 1 - cfg",
+ "description": "Enables tag-rewrite pop 1 operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 pop 1\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \n \"interface\":{\n \"name\":\"GigabitEthernet0/8/0\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"enabled\":\"true\",\n \"ipv4\":{\n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n }\n }\n}\n",
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": "{\r\n \"rewrite\": {\r\n \"pop-tags\": \"1\"\r\n }\r\n}"
},
{
- "id": "38a649df-279a-94b5-2f56-1024094d591f",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/greTun1",
+ "id": "35ca3437-95e4-390d-e46b-379b48b2c821",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/aa:bb:cc:dd:ee:ff",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -458,17 +467,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1469159528476,
- "name": "Add gre ifc - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465806456783,
+ "name": "Add L2 FIB entry (forward)",
+ "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add aa:bb:cc:dd:ee:ff [bd_id] local0\n\nTo verify run:\n\nvppctl show l2fib verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"greTun1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:gre-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"gre\" : {\r\n \"src\" : \"192.168.1.6\",\r\n \"dst\" : \"192.168.1.9\",\r\n \"outer-fib-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"aa:bb:cc:dd:ee:ff\",\n \"outgoing-interface\": \"local0\",\n \"action\": \"l2-fib-forward\"\n }\n ]\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "3c4f4168-6861-c56d-6499-581f4b91f8af",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:l2",
+ "id": "36d2ba4c-8fea-24a6-9773-335e75862b3b",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -478,18 +488,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465805545425,
- "name": "Add local0 to bridge domain",
- "description": "Adds l2 interconnection of bridge-based type to local0 interface.\nCorresponds to the following command:\n\nvppctl set interface l2 bridge local0 [bd_id]\n\nTo verify invoke:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464804325716,
+ "name": "Enable GigabitEthernet0/9/0 interface - cfg",
+ "description": "Enables GigabitEthernet0/9/0 interface. Equivalent vppctl command:\n\nvppctl set in state GigabitEthernet0/9/0 up\n\nNeeded to enable sub interface.\n\nTo verify invoke:\n\nvppctl show int",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \"l2\": {\r\n \"bridge-domain\": \"testBD\",\r\n \"split-horizon-group\": 1,\r\n \"bridged-virtual-interface\": \"false\"\r\n }\r\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"GigabitEthernet0/9/0\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"v3po:ethernet\": {\r\n \"mtu\": 9216\r\n },\r\n \"enabled\": true,\r\n \"vpp-vlan:sub-interfaces\": {\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": 1,\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n },\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": true\r\n }\r\n },\r\n \"enabled\": false\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
},
{
- "id": "40ce65aa-7c50-93e7-8066-f5d2fd5e027b",
+ "id": "39ae2e06-c48e-95f0-74da-0c5b7232699a",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -499,18 +509,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462891472552,
- "name": "Add vhost user ifc - cfg",
- "description": "Adds vhost-user interface.\nCorresponsing vpp cli command:\n\ncreate vhost-user socket /tmp/soc1 server\n\nTo verify invoke:\n\nvppctl show vhost-user\n\nor\n\nvppctl show int",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1468493298160,
+ "name": "Add classify table1",
+ "description": "Adds classify table1 chained to classify table0.\n\nCorresponding vpp cli command:\n\nvppctl classify table mask l2 dst next-table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 1",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vhost1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vhost-user\",\r\n \"enabled\": \"true\",\r\n \"vhost-user\" : {\r\n \"socket\": \"/tmp/soc1\",\r\n \"role\": \"server\"\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "57e860c0-0c9a-2511-8241-7d64cc646b29"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": "{\n \"classify-table\": [\n {\n \"name\": \"table1\",\n \"next_table\": \"table0\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"permit\",\n \"mask\": \"ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00\"\n }\n ]\n}"
},
{
- "id": "41613fb5-7750-87a2-988c-90d5760eaab6",
+ "id": "3fde45c8-d17c-4511-39db-172a0777f455",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -519,146 +529,144 @@
"version": 2,
"tests": "",
"currentHelper": "normal",
- "helperAttributes": "{}",
- "time": 1464803940412,
- "name": "Enable tag-rewrite push - cfg",
- "description": "Enables tag-rewrite push operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 push dot1q 123 456\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "helperAttributes": {},
+ "time": 1468493546163,
+ "name": "Add classify session",
+ "description": "Adds classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:06\n\nTo verify invoke:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "timestamp": null,
- "rawModeData": "{\r\n \"rewrite\": {\r\n \"vlan-type\": \"vpp-vlan:802dot1q\",\r\n \"push-tags\": [\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": 123\r\n }\r\n },\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": 456\r\n }\r\n }\r\n ]\r\n }\r\n}"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": "{\n \"classify-session\": [\n {\n \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00\"\n }\n ]\n}"
},
{
- "id": "4b3ec3d9-250f-2777-b150-ba60fc43baec",
+ "id": "45366f9f-dd8d-8ecd-6696-c0b15cdd432a",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/naming-context:contexts",
- "pathVariables": {},
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/",
"preRequestScript": "",
+ "pathVariables": {},
"method": "GET",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
"data": [],
"dataMode": "raw",
- "name": "List naming contexts - context",
- "description": "List mapping context stored in context datastore",
- "descriptionFormat": "html",
- "time": 1463556756647,
"version": 2,
- "responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
+ "time": 1460539962712,
+ "name": "List ifcs - cfg",
+ "description": "List ifcs - cfg",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "responses": [],
"rawModeData": "{\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}"
},
{
- "id": "504f9507-132b-074f-e5b2-f01df759631f",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
+ "id": "491533f4-0bd3-237f-0821-6b68aaf275ff",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/arp-termination-table/arp-termination-table-entry/1.2.3.4/aa:bb:cc:dd:ee:ff",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468493546163,
- "name": "Add classify session",
- "description": "Adds classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:06\n\nTo verify invoke:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1471257339594,
+ "name": "Delete ARP termination table entry ",
+ "description": "Removes ARP termination termination entry. Corresponds to invoking:\n\nvat# bd_ip_mac_add_del bd_id [bd_id] 1.2.3.4 aa:bb:cc:dd:ee:ff del\n\nTo verify run:\n\nvppctl show bridge-domain 1 detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": "{\n \"classify-session\": [\n {\n \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00\"\n }\n ]\n}"
+ "rawModeData": "",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "535a4a39-5aa7-6626-91c7-100a8f1148df",
+ "id": "4bdaa6f2-ea68-99e3-ff16-99b3b9772a9c",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4/address/127.0.0.1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:acl/",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1466497176571,
- "name": "Set ipv4 local0 interface - cfg netmask",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467380189765,
+ "name": "Disable ACL on local0 interface",
+ "description": "Disables ACL on local0. To verify invoke:\n\nvppctl show inacl type l2\n\nand:\n\nvppctl show inacl type ip4",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"127.0.0.1\",\r\n \"netmask\": \"255.255.255.128\"\r\n }]\r\n}"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "58cf610b-0df6-8ef1-6d10-7fe97ce85d30",
+ "id": "4cb0154d-bcd7-16e6-f9ce-00a6557df9b2",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464804511683,
- "name": "Disable tag-rewrite - cfg",
- "description": "Disables tag-rewrite operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 disable\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1462796801468,
+ "name": "Modify complex tap ifc - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": ""
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp2\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp2\",\r\n \"mac\" : \"00:ff:ff:ff:ff:ae\",\r\n \"device-instance\" : 77\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "bc1b64a3-6ebe-92f2-86e4-dc5ce4736547"
},
{
- "id": "59129348-06d4-8b95-792d-579805c7443d",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/vpp-classifier:vpp-classifier-state/classify-table/table0",
+ "id": "4df29897-4c65-05d3-fded-6c26e5b7d1be",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/aa:bb:cc:dd:ee:ff",
"preRequestScript": "",
"pathVariables": {},
- "method": "GET",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467378420028,
- "name": "Get classify table - oper",
- "description": "Shows classify table 0 operational state.\n\nCorresponds to:\n\nvat# classify_table_info table_id 0",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465806577485,
+ "name": "Delete L2 FIB entry",
+ "description": "Removes L2 FIB entry. Corresponds to invoking:\n\nvppctl l2fib del aa:bb:cc:dd:ee:ff [bd_id]\n\nTo verify run:\n\nvppctl show l2fib verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": ""
+ "rawModeData": "",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "5c19eb1f-8ebe-6ebd-e5ba-d728b1321fec",
+ "id": "515a4386-0bb6-7d73-e9c6-94c044fcd0c4",
"headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
"url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/ipv4/neighbor/172.16.0.2",
"preRequestScript": null,
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1466498409820,
- "name": "Ip Neighbour Add",
- "description": "This call doesnt have respective dump call,because of performance issues(dump for this can contain millions of entries). Data inserted throught this call can be verified by calling vppctl show ip fib|arp",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1466498502212,
+ "name": "Ip Neighbour Delete",
+ "description": "Verify this call by invoking vppctl show ip fib|arp",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n \n}\n",
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892"
+ "rawModeData": "{\n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n}\n",
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3"
},
{
- "id": "5e4dbb7f-7527-da2c-39b1-9625163e7198",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/00:01:02:03:04:05",
+ "id": "53d05858-e4a9-ae44-21a7-48bef9bfd72b",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4/address/127.0.0.1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -668,18 +676,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465814845273,
- "name": "Add L2 FIB entry (filter)",
- "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add 00:01:02:03:04:05 [bd_id] filter\n\nTo verify run:\n\nvppctl show l2fib verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1466496859574,
+ "name": "Set ipv4 local0 interface - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"00:01:02:03:04:05\",\n \"outgoing-interface\": \"local0\",\n \"static-config\": \"true\",\n \"action\": \"l2-fib-filter\"\n }\n ]\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
+ "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"127.0.0.1\",\r\n \"prefix-length\" : \"24\"\r\n }]\r\n}"
},
{
- "id": "606ef146-fa19-b110-f7a5-abd3d2ae8aa2",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/aa:bb:cc:dd:ee:ff",
+ "id": "54f60871-b507-3aa2-9a31-e3305b19d69a",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -689,37 +697,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465806456783,
- "name": "Add L2 FIB entry (forward)",
- "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add aa:bb:cc:dd:ee:ff [bd_id] local0\n\nTo verify run:\n\nvppctl show l2fib verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
- "responses": [],
- "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"aa:bb:cc:dd:ee:ff\",\n \"outgoing-interface\": \"local0\",\n \"action\": \"l2-fib-forward\"\n }\n ]\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
- },
- {
- "id": "627d4183-240b-5e4e-2f40-c283c600a137",
- "headers": "",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/",
- "preRequestScript": null,
- "pathVariables": {},
- "method": "GET",
- "data": null,
- "dataMode": "params",
- "tests": null,
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1465805728052,
- "name": "Show local0 - cfg",
- "description": "Shows local0 interface configuration",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464767860505,
+ "name": "Add virtual ifc - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanTun1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vxlan-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"vxlan\" : {\r\n \"src\" : \"192.168.1.6\",\r\n \"dst\" : \"192.168.1.9\",\r\n \"vni\" : \"88\",\r\n \"encap-vrf-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "c4d78923-3fd3-a2d5-5383-a6f82a8ef0ea"
},
{
- "id": "689d7b5c-2e8d-21ae-3435-7ed68958b9d0",
+ "id": "55c3dfd4-11c9-e5cc-c52e-26ec9e519161",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0",
+ "url": "http://localhost:8181/restconf/operational/vpp-classifier:vpp-classifier-state/",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -729,82 +718,81 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465472429324,
- "name": "Read local0 - oper",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467377066230,
+ "name": "Get classify tables - oper",
+ "description": "Shows classify tables configured in the VPP.\n\nCorresponds to:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\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}"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "6aa5b019-4dbe-5016-a6a9-db28db083d5b",
+ "id": "6370667b-fae6-6731-a5c2-3b87a074b7c6",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:07:00:00:00:00",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468493583927,
- "name": "Add another classify session",
- "description": "Adds second classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:07\n\nTo verify invoke:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1462796994090,
+ "name": "Delete complex tap ifc - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": "{\n \"classify-session\": [\n {\n \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:07:00:00:00:00\"\n }\n ]\n}"
+ "rawModeData": "",
+ "folder": "bc1b64a3-6ebe-92f2-86e4-dc5ce4736547"
},
{
- "id": "6c41fbe8-ecc8-c764-c98b-5e5bc1099ab3",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
- "preRequestScript": "",
+ "id": "693e6beb-d88f-a566-35aa-49a2364c0620",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD",
"pathVariables": {},
- "method": "DELETE",
+ "preRequestScript": "",
+ "method": "PUT",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"data": [],
"dataMode": "raw",
+ "name": "Create bridge domain - cfg",
+ "description": "Creates bridgfe domain. Corresponds to invoking:\n\nvat# bridge_domain_add_del bd_id [bd_id] learn 0 forward 0 uu-flood 0 flood 1 arp-term 0\n\nTo verify run:\n\nvppctl show bridge-domain [bd_id] detail",
+ "descriptionFormat": "html",
+ "time": 1465805138795,
"version": 2,
+ "responses": [],
"tests": "",
"currentHelper": "normal",
- "helperAttributes": "{}",
- "time": 1462891488523,
- "name": "Delete vhost user ifc - cfg",
- "description": "Deletes vhost user interface.\nCorresponding vpp CLI command:\n\nvppctl delete vhost-user sw_if_index [index]\n\nTo verify invoke:\n\nvppctl show vhost-user\n\nor\n\nvppctl show int",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
- "responses": [],
- "folder": "57e860c0-0c9a-2511-8241-7d64cc646b29",
- "rawModeData": "",
- "descriptionFormat": null
+ "helperAttributes": {},
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e",
+ "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}"
},
{
- "id": "6c8e7d91-388b-8dfd-8e8b-544adc9ae7bd",
+ "id": "6bf54e03-4e72-0c77-064e-e387c4fec898",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
+ "url": "http://localhost:8181/restconf/operational/v3po:vpp-state",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464768006369,
- "name": "Add vxlan-gpe - cfg",
+ "time": 1460539994330,
+ "name": "Read vpp-state - oper",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanGpeTun3\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"vxlan-gpe\" : {\r\n \"local\" : \"192.168.50.76\",\r\n \"remote\" : \"192.168.50.71\",\r\n \"vni\" : \"9\",\r\n \"next-protocol\" : \"ethernet\",\r\n \"encap-vrf-id\" : \"0\",\r\n \"decap-vrf-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "5d0a3c92-b5ab-8108-8caf-c62b6d974ced"
+ "rawModeData": "{\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}"
},
{
- "id": "72989f8a-5484-dc0f-772f-cec27ff71337",
+ "id": "6df6e635-ec16-f694-0fe7-80fbfca7ea2b",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -814,18 +802,18 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468493354688,
- "name": "Add classify table0",
- "description": "Adds classify table0. Corresponding vpp cli command:\n\nvppctl classify table mask l2 src\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 0",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464804304987,
+ "name": "Add sub interface - cfg",
+ "description": "Adds sub interface. Corresponsing vpp cli command:\n\nvppctl create sub GigabitEthernet0/9/0 1 dot1q 100 inner-dot1q any\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": "{\n \"classify-table\": [\n {\n \"name\": \"table0\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"permit\",\n \"mask\": \"00:00:00:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00\"\n }\n ]\n}"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": "{\r\n \"sub-interface\": [\r\n {\r\n \"identifier\": \"1\",\r\n \"vlan-type\": \"802dot1q\",\r\n \"tags\": {\r\n \"tag\": [\r\n {\r\n \"index\": \"0\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": \"100\"\r\n }\r\n },\r\n {\r\n \"index\": \"1\",\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": \"any\"\r\n }\r\n }\r\n ]\r\n },\r\n \"match\": {\r\n \"vlan-tagged\": {\r\n \"match-exact-tags\": \"true\"\r\n }\r\n },\r\n \"enabled\": \"false\"\r\n }\r\n ]\r\n}"
},
{
- "id": "730a10c2-5e29-1a83-1b4d-fb945be02df4",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD",
+ "id": "6e07daba-1cbd-11a7-cd3f-c58f6e24d3c5",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -835,102 +823,103 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465806733493,
- "name": "Show bridge domain - cfg",
- "description": "Shows testBD bridge domain configuration.",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1466497212835,
+ "name": "Read local0/ipv4 - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
+ "rawModeData": "{\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}"
},
{
- "id": "81e67bcf-9af7-5951-84a3-3d12e35273b6",
+ "id": "70b23783-3fb3-b2a9-3eab-de545ad9871e",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/greTun1",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460640004531,
- "name": "Set vrf id for local0 - cfg",
+ "time": 1469159546949,
+ "name": "Delete gre ifc - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"description\": \"for testing purposes only\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"7\"\r\n },\r\n \"v3po:ethernet\": {\r\n \"mtu\": 64\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "rawModeData": "",
+ "folder": "a147f28a-7a64-a09b-85e2-1dd201b32c15"
},
{
- "id": "85f4b9e4-40cd-c9ec-eb9d-412b214cbd09",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/ipv4",
+ "id": "7907c688-8b56-f6ea-9dc9-c4c7443d9833",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/00:01:02:03:04:05",
"preRequestScript": "",
"pathVariables": {},
- "method": "GET",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1466497212835,
- "name": "Read local0/ipv4 - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465814845273,
+ "name": "Add L2 FIB entry (filter)",
+ "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add 00:01:02:03:04:05 [bd_id] filter\n\nTo verify run:\n\nvppctl show l2fib verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\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}"
+ "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"00:01:02:03:04:05\",\n \"outgoing-interface\": \"local0\",\n \"static-config\": \"true\",\n \"action\": \"l2-fib-filter\"\n }\n ]\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "8a79e3b2-70ea-cf56-3317-34fe1dfe4e7b",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD",
+ "id": "7c7284a9-df62-d272-77a5-9d2d326ffaee",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/ipv4/address/1.2.3.4",
"pathVariables": {},
"preRequestScript": "",
"method": "PUT",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"data": [],
"dataMode": "raw",
- "name": "Create bridge domain - cfg",
- "description": "Creates bridgfe domain. Corresponds to invoking:\n\nvat# bridge_domain_add_del bd_id [bd_id] learn 0 forward 0 uu-flood 0 flood 1 arp-term 0\n\nTo verify run:\n\nvppctl show bridge-domain [bd_id] detail",
+ "name": "Set ipv4 for sub-interface - cfg",
+ "description": "Correponds to the following command:\n\nvppctl set interface ip address GigabitEthernet0/9/0.1 1.2.3.4/8\n\nTo verify invoke:\nvppctl show int",
"descriptionFormat": "html",
- "time": 1465805138795,
+ "time": 1467117222646,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245",
- "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}"
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
+ "rawModeData": "{\r\n \"address\": [{\r\n \"ip\" : \"1.2.3.4\",\r\n \"prefix-length\" : \"8\"\r\n }]\r\n}"
},
{
- "id": "8ba5dc84-2b75-c442-4166-640f53bbadc7",
+ "id": "83684dd6-3e21-664e-237e-fc125f3c0412",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1",
+ "url": "http://localhost:8181/restconf/operational/vpp-classifier:vpp-classifier-state/classify-table/table0",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467377388428,
- "name": "Remove classify table1",
- "description": "Removes classify table1. Corresponds to the following command:\n\nvppctl classify table del table 1\n\nTo verify invoke:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467378420028,
+ "name": "Get classify table - oper",
+ "description": "Shows classify table 0 operational state.\n\nCorresponds to:\n\nvat# classify_table_info table_id 0",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
"rawModeData": ""
},
{
- "id": "9961968f-53f3-38fa-42e9-7c2fee03467f",
+ "id": "88d1d68f-6521-066a-c6b0-8c73c9a8bf93",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -940,78 +929,82 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460540006597,
- "name": "Read vpp - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467377260818,
+ "name": "Get classify tables - cfg",
+ "description": "Shows classify table configuration.",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\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}"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "a05caf2c-8c0b-168c-1348-2764a710a51c",
+ "id": "8ef770c1-edbf-f792-b9fa-4e4ab598090a",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/vpp-classifier:vpp-classifier-state/",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/greTun1",
"preRequestScript": "",
"pathVariables": {},
- "method": "GET",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467377066230,
- "name": "Get classify tables - oper",
- "description": "Shows classify tables configured in the VPP.\n\nCorresponds to:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1469159528476,
+ "name": "Add gre ifc - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": ""
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"greTun1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:gre-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"gre\" : {\r\n \"src\" : \"192.168.1.6\",\r\n \"dst\" : \"192.168.1.9\",\r\n \"outer-fib-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "a147f28a-7a64-a09b-85e2-1dd201b32c15"
},
{
- "id": "ae8930f5-48a8-e4a0-cca9-cfa18ebdc848",
+ "id": "935a92b4-f1c3-5eb9-ccc9-d8e63792b4ca",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/greTun1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1469159546949,
- "name": "Delete gre ifc - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1462891483790,
+ "name": "Modify vhost user ifc - cfg",
+ "description": "Modifies vhost-user interface socket.\nTo verify invoke:\n\nvppctl show vhost-user",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": ""
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vhost1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vhost-user\",\r\n \"enabled\": \"true\",\r\n \"vhost-user\" : {\r\n \"socket\": \"/tmp/soc2\",\r\n \"role\": \"server\"\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "0b5df1f1-57ca-15d3-afde-ab0779938ecd"
},
{
- "id": "b3309c95-8050-5086-a285-b1d2403b0ae5",
+ "id": "99f1a758-813a-b7bd-016b-904fe8171386",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/v3po:vpp-state",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
"preRequestScript": "",
"pathVariables": {},
- "method": "GET",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
- "helperAttributes": {},
- "time": 1460539994330,
- "name": "Read vpp-state - oper",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "helperAttributes": "{}",
+ "time": 1462891488523,
+ "name": "Delete vhost user ifc - cfg",
+ "description": "Deletes vhost user interface.\nCorresponding vpp CLI command:\n\nvppctl delete vhost-user sw_if_index [index]\n\nTo verify invoke:\n\nvppctl show vhost-user\n\nor\n\nvppctl show int",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\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}"
+ "folder": "0b5df1f1-57ca-15d3-afde-ab0779938ecd",
+ "rawModeData": "",
+ "descriptionFormat": null
},
{
- "id": "b486e4ed-9b5e-0a20-af33-5a68c0064c93",
+ "id": "9b1de0b6-5d2f-dc90-a51d-3b77babab229",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
"preRequestScript": "",
"pathVariables": {},
"method": "DELETE",
@@ -1021,40 +1014,39 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462796994090,
- "name": "Delete complex tap ifc - cfg",
+ "time": 1464764638498,
+ "name": "Delete vxlan-gpe - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
"rawModeData": "",
- "folder": "1919a15e-e9a8-679d-ab82-c6092d66275d"
+ "folder": "c2e53423-ddf1-f711-db51-f5f9df7e25ec"
},
{
- "id": "b80137cb-93ed-8f6a-723d-59f9ff18ce39",
+ "id": "a7b0a0f8-b35f-5e15-3a5e-289f840000de",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
- "helperAttributes": "{}",
- "time": 1462892071867,
- "name": "Delete virtual ifc - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "helperAttributes": {},
+ "time": 1468493354688,
+ "name": "Add classify table0",
+ "description": "Adds classify table0. Corresponding vpp cli command:\n\nvppctl classify table mask l2 src\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 0",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "0f8929c0-21da-0d4b-fe32-4c3ef07dacde",
- "timestamp": null,
- "rawModeData": ""
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": "{\n \"classify-table\": [\n {\n \"name\": \"table0\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"permit\",\n \"mask\": \"00:00:00:00:00:00:ff:ff:ff:ff:ff:ff:00:00:00:00\"\n }\n ]\n}"
},
{
- "id": "ba5adf9b-40d6-a4e7-8a91-840d06f250d6",
+ "id": "ada5de75-8ce4-115b-6205-ee09f8211a2b",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -1063,59 +1055,62 @@
"version": 2,
"tests": "",
"currentHelper": "normal",
- "helperAttributes": {},
- "time": 1464767860505,
- "name": "Add virtual ifc - cfg",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "helperAttributes": "{}",
+ "time": 1464803940412,
+ "name": "Enable tag-rewrite push - cfg",
+ "description": "Enables tag-rewrite push operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 push dot1q 123 456\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vxlanTun1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vxlan-tunnel\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"routing\" : {\r\n \"vrf-id\" : \"0\"\r\n },\r\n \"vxlan\" : {\r\n \"src\" : \"192.168.1.6\",\r\n \"dst\" : \"192.168.1.9\",\r\n \"vni\" : \"88\",\r\n \"encap-vrf-id\" : \"0\"\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "0f8929c0-21da-0d4b-fe32-4c3ef07dacde"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "timestamp": null,
+ "rawModeData": "{\r\n \"rewrite\": {\r\n \"vlan-type\": \"vpp-vlan:802dot1q\",\r\n \"push-tags\": [\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": 123\r\n }\r\n },\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": 456\r\n }\r\n }\r\n ]\r\n }\r\n}"
},
{
- "id": "bdd8770d-6737-9058-37f2-e4986315b71f",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/",
- "preRequestScript": "",
+ "id": "ae426268-fd80-2da7-00a2-b2856a5f2d6c",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/arp-termination-table/arp-termination-table-entry/1.2.3.4/aa:bb:cc:dd:ee:ff",
"pathVariables": {},
- "method": "GET",
+ "preRequestScript": "",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
+ "name": "Add ARP termination table entry ",
+ "description": "Adds ARP termination termination entry. Corresponds to invoking:\n\nvat# bd_ip_mac_add_del bd_id [bd_id] 1.2.3.4 aa:bb:cc:dd:ee:ff\n\nTo verify run:\n\nvppctl show bridge-domain 1 detail",
+ "descriptionFormat": "html",
+ "time": 1471256345214,
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460539962712,
- "name": "List ifcs - cfg",
- "description": "List ifcs - cfg",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\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}"
+ "rawModeData": "{\n \"arp-termination-table-entry\": [\n {\n \"ip-address\": \"1.2.3.4\",\n \"phys-address\": \"aa:bb:cc:dd:ee:ff\"\n }\n ]\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "c2e8b44a-c868-84b7-87ef-a6d9c8d97079",
+ "id": "af809b2c-09bb-3495-433f-87f6518d1803",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460636113690,
- "name": "Set interfaces bulk edit - cfg",
+ "time": 1460540006597,
+ "name": "Read vpp - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \"interfaces\": {\n \"interface\": [\n {\n \"name\": \"pg/stream-2\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"pg/stream-3\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"pg/stream-0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"local0\",\n \"description\": \"for testing purposes\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"enabled\": true\n },\n {\n \"name\": \"pg/stream-1\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n }\n ]\n }\n}"
+ "rawModeData": "{\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}"
},
{
- "id": "c357b39f-537c-8e55-a4f3-130499ef5812",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/operational/v3po:vpp-state/bridge-domains/bridge-domain/testBD",
+ "id": "bd0e559b-ac61-cecf-4a98-588445ed2435",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -1125,39 +1120,40 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465806752970,
- "name": "Show bridge domain - oper",
- "description": "Shows testBD bridge domain operational state.\nCorresponds to invoking:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465472429324,
+ "name": "Read local0 - oper",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
+ "rawModeData": "{\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}"
},
{
- "id": "c438ec30-8e00-e644-f65d-ca62db804a86",
- "headers": "",
- "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/",
+ "id": "c13fb7e2-f445-dfe1-0a77-02c464f8c85d",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://admin:admin@127.0.0.1:8181/restconf/config/ietf-interfaces:interfaces/interface/TenGigabitEthernet7%2F0%2F0",
"pathVariables": {},
"preRequestScript": null,
- "method": "GET",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
- "data": null,
- "dataMode": "params",
- "name": "Show local0 - oper",
- "description": "Shows local0 interface operational state",
+ "method": "PUT",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "data": [],
+ "dataMode": "raw",
+ "name": "Add proxy arp on interface",
+ "description": "Add proxy arp on interface",
"descriptionFormat": "html",
- "time": 1465805719840,
+ "time": 1469545402144,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "c0e3752c-3dfa-8ae5-1456-834c95122afd",
+ "rawModeData": "{\n \n \"ietf-interfaces:interface\": [\n {\n \"name\": \"TenGigabitEthernet7/0/0\",\n \"description\": \"for testing purposes\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"v3po:proxy-arp\" :{\n \"vrf-id\" : 0,\n \"low-addr\" : \"111.1.1.1\",\n\t\t \"high-addr\" : \"111.1.1.255\"\n }\n }\n ]\n \n}"
},
{
- "id": "c56166bc-1f79-3688-4b39-c0830da26ffe",
+ "id": "c27c86bb-a6cd-c4e8-8e5d-468bf7194654",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -1167,102 +1163,103 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464805111410,
- "name": "Enable tag-rewrite pop 1 - cfg",
- "description": "Enables tag-rewrite pop 1 operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 pop 1\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1462796722186,
+ "name": "Add complex tap ifc - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": "{\r\n \"rewrite\": {\r\n \"pop-tags\": \"1\"\r\n }\r\n}"
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp2\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp2\",\r\n \"mac\" : \"00:ff:ff:ff:ff:ff\",\r\n \"device-instance\" : 55\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "bc1b64a3-6ebe-92f2-86e4-dc5ce4736547"
},
{
- "id": "d067474e-9df0-11ab-dc5a-05ffa1e4e54e",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/ipv4",
- "preRequestScript": "",
+ "id": "c2ead851-b5db-fcdc-7b8d-0354a323a385",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/ipv4/neighbor/172.16.0.2",
+ "preRequestScript": null,
"pathVariables": {},
"method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
- "tests": "",
+ "tests": null,
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465473594194,
- "name": "Read local0/ipv4 - oper",
- "description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1466498440466,
+ "name": "Ip Neighbour Get",
+ "description": "This call returns data stored in honeycomb,to verify actual data stored by vpp, call vppctl show ip fib|arp",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "05ae0a9b-545c-9171-b94c-7c8314a47892",
- "rawModeData": "{\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}"
+ "rawModeData": "{\n \n \"interface\":{\n \"name\":\"GigabitEthernet0/8/0\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"enabled\":\"true\",\n \"ipv4\":{\n \"neighbor\":{\n \"ip\":\"172.16.0.2\",\n \"link-layer-address\":\"00:01:11:00:02:02\"\n }\n }\n }\n}\n",
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3"
},
{
- "id": "d225a46a-a7c6-712f-b8d2-76beedfb68c6",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
- "preRequestScript": "",
+ "id": "c45fc816-8e66-d51e-dbad-140bbb1d8ca5",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://admin:admin@127.0.0.1:8181/restconf/config/ietf-interfaces:interfaces/interface/TenGigabitEthernet7%2F0%2F0/v3po:proxy-arp ",
"pathVariables": {},
+ "preRequestScript": null,
"method": "DELETE",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"data": [],
"dataMode": "raw",
+ "name": "Delete proxy arp on interface",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1469545483066,
"version": 2,
- "tests": "",
+ "responses": [],
+ "tests": null,
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468493934488,
- "name": "Remove classify session",
- "description": "Removes classify session. To verify invoke:\n\nvppctl sh class table verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
- "responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
+ "folder": "c0e3752c-3dfa-8ae5-1456-834c95122afd",
"rawModeData": ""
},
{
- "id": "d26d5396-483f-092f-5695-7a4f9de3b2e3",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:l2",
+ "id": "cc855d48-7c5b-ec67-b089-90d2f34bc7cc",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:acl",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465984375972,
- "name": "Remove local0 from bridge domain",
- "description": "Removes l2 interconnection of bridge-based type from local0 interface.\nCorresponds to the following VAT command:\n\nvat# sw_interface_set_l2_bridge sw_if_index 0 bd_id 1 disable\n\nVerification in VAT:\n\nvat# bridge_domain_dump",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1468495690154,
+ "name": "Enable L2 and Ipv4 ACL on local0 interface",
+ "description": "Enables L2 and Ipv4 ACL on local0. Corresponding vpp cli commands:\n\nset int input acl intfc local0 l2-table 0\n\nset int input acl intfc local0 ip4-table 0\n\nTo verify invoke:\n\nvppctl show inacl type l2\n\nthen:\n\nvppctl show inacl type ip4",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": "{\n \"v3po:acl\": {\n \"l2-acl\": {\n \"classify-table\": \"table0\"\n },\n \"ip4-acl\": {\n \"classify-table\": \"table0\"\n }\n }\n}"
},
{
- "id": "a042fef8-8aa6-3d79-a623-05f32e1f4cf5",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/arp-termination-table/arp-termination-table-entry/1.2.3.4/aa:bb:cc:dd:ee:ff",
- "pathVariables": {},
+ "id": "cca4b409-d9ce-7d1c-ff79-0569001d39aa",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
"preRequestScript": "",
+ "pathVariables": {},
"method": "PUT",
"data": [],
"dataMode": "raw",
- "name": "Add ARP termination table entry ",
- "description": "Adds ARP termination termination entry. Corresponds to invoking:\n\nvat# bd_ip_mac_add_del bd_id [bd_id] 1.2.3.4 aa:bb:cc:dd:ee:ff\n\nTo verify run:\n\nvppctl show bridge-domain 1 detail",
- "descriptionFormat": "html",
- "time": 1471256345214,
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1464805188780,
+ "name": "Enable tag-rewrite translate 1-2 - cfg",
+ "description": "Enables tag-rewrite translate 1-2 operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 translate 1-2 dot1q 111 222\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \"arp-termination-table-entry\": [\n {\n \"ip-address\": \"1.2.3.4\",\n \"phys-address\": \"aa:bb:cc:dd:ee:ff\"\n }\n ]\n}"
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
+ "rawModeData": "{\r\n \"rewrite\": {\r\n \"vlan-type\": \"vpp-vlan:802dot1q\",\r\n \"pop-tags\": \"1\",\r\n \"push-tags\": [\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": 111\r\n }\r\n },\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": 222\r\n }\r\n }\r\n ]\r\n }\r\n}"
},
{
- "id": "ee243708-16f4-a3fc-6498-f66dcc82afa7",
+ "id": "cca4ee8d-25a1-424d-9c64-1287cd408c9a",
"headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/arp-termination-table/arp-termination-table-entry/1.2.3.4/aa:bb:cc:dd:ee:ff",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:l2",
"preRequestScript": "",
"pathVariables": {},
"method": "DELETE",
@@ -1272,80 +1269,100 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1471257339594,
- "name": "Delete ARP termination table entry ",
- "description": "Removes ARP termination termination entry. Corresponds to invoking:\n\nvat# bd_ip_mac_add_del bd_id [bd_id] 1.2.3.4 aa:bb:cc:dd:ee:ff del\n\nTo verify run:\n\nvppctl show bridge-domain 1 detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465984375972,
+ "name": "Remove local0 from bridge domain",
+ "description": "Removes l2 interconnection of bridge-based type from local0 interface.\nCorresponds to the following VAT command:\n\nvat# sw_interface_set_l2_bridge sw_if_index 0 bd_id 1 disable\n\nVerification in VAT:\n\nvat# bridge_domain_dump",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": ""
+ "rawModeData": "",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "d67e5cbf-73ab-6030-ea0d-9eee69e3f8e3",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/aa:bb:cc:dd:ee:ff",
+ "id": "d135c74e-cc27-0c64-3ff6-45795bff14fe",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:07:00:00:00:00",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465806577485,
- "name": "Delete L2 FIB entry",
- "description": "Removes L2 FIB entry. Corresponds to invoking:\n\nvppctl l2fib del aa:bb:cc:dd:ee:ff [bd_id]\n\nTo verify run:\n\nvppctl show l2fib verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1468493583927,
+ "name": "Add another classify session",
+ "description": "Adds second classify session to table0. Corresponding vpp cli command:\n\nvppctl classify session acl-hit-next deny opaque-index 0 table-index 0 match l2 src 01:02:03:04:05:07\n\nTo verify invoke:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": "{\n \"classify-session\": [\n {\n \"hit_next\": \"deny\",\n \"match\": \"00:00:00:00:00:00:01:02:03:04:05:07:00:00:00:00\"\n }\n ]\n}"
},
{
- "id": "da4da994-c357-d325-9206-fed6a8aa9838",
+ "id": "d2550a8f-b694-89c1-b161-d1ae78ead36c",
+ "headers": "",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/",
+ "preRequestScript": null,
+ "pathVariables": {},
+ "method": "GET",
+ "data": null,
+ "dataMode": "params",
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1465805728052,
+ "name": "Show local0 - cfg",
+ "description": "Shows local0 interface configuration",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "responses": [],
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
+ },
+ {
+ "id": "d3c5268f-eccb-10a7-4e24-69a568fde4c2",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:acl",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:01:02:03:04:05:06:00:00:00:00",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468495690154,
- "name": "Enable L2 and Ipv4 ACL on local0 interface",
- "description": "Enables L2 and Ipv4 ACL on local0. Corresponding vpp cli commands:\n\nset int input acl intfc local0 l2-table 0\n\nset int input acl intfc local0 ip4-table 0\n\nTo verify invoke:\n\nvppctl show inacl type l2\n\nthen:\n\nvppctl show inacl type ip4",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1468493934488,
+ "name": "Remove classify session",
+ "description": "Removes classify session. To verify invoke:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": "{\n \"v3po:acl\": {\n \"l2-acl\": {\n \"classify-table\": \"table0\"\n },\n \"ip4-acl\": {\n \"classify-table\": \"table0\"\n }\n }\n}"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "ea55b1b2-c87f-36dc-7f57-5a0e927973ae",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0/v3po:acl/",
+ "id": "dbb104c1-2702-e413-34a0-f22cab696268",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/11:22:33:44:55:66",
"preRequestScript": "",
"pathVariables": {},
- "method": "DELETE",
+ "method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467380189765,
- "name": "Disable ACL on local0 interface",
- "description": "Disables ACL on local0. To verify invoke:\n\nvppctl show inacl type l2\n\nand:\n\nvppctl show inacl type ip4",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465806064247,
+ "name": "Add L2 FIB entry (static, forward)",
+ "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add 11:22:33:44:55:66 [bd_id] local0 static\n\nTo verify run:\n\nvppctl show l2fib verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": ""
+ "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"11:22:33:44:55:66\",\n \"outgoing-interface\": \"local0\",\n \"static-config\": \"true\",\n \"action\": \"l2-fib-forward\"\n }\n ]\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
},
{
- "id": "ec293c86-ce0f-568c-eaaa-c966387a8824",
+ "id": "e9144a8b-0dd3-16e9-7793-e2fefe46b57d",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/local0",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -1355,37 +1372,35 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1468493298160,
- "name": "Add classify table1",
- "description": "Adds classify table1 chained to classify table0.\n\nCorresponding vpp cli command:\n\nvppctl classify table mask l2 dst next-table 0\n\nTo verify invoke:\n\nvppctl sh class table verbose\n\nor:\n\nvat# classify_table_info table_id 1",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1460540047356,
+ "name": "Enable local0 interface - cfg",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": "{\n \"classify-table\": [\n {\n \"name\": \"table1\",\n \"next_table\": \"table0\",\n \"nbuckets\": \"2\",\n \"memory_size\": \"1048576\",\n \"miss_next\": \"permit\",\n \"mask\": \"ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00\"\n }\n ]\n}"
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"local0\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"v3po:ethernet\": {\r\n \"mtu\": 64\r\n }\r\n }\r\n ]\r\n \r\n}"
},
{
- "id": "edad8622-df73-c895-d2d1-8b2659abdf03",
+ "id": "ea99eaa4-781f-72b5-9324-7ea68612848d",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2/rewrite",
+ "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "GET",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1464805188780,
- "name": "Enable tag-rewrite translate 1-2 - cfg",
- "description": "Enables tag-rewrite translate 1-2 operation for GigabitEthernet0/9/0.1 sub-interface. Corresponsing vpp cli command:\n\nvppctl set interface l2 tag-rewrite GigabitEthernet0/9/0.1 translate 1-2 dot1q 111 222\n\nTo verify run:\n./build-root/install-vpp-native/vpp-api-test/bin/vpp_api_test json\nand invoke:\n\n#vat sw_interface_dump\n\nor if sub-interface was added to bridge domain:\n\nvppctl show bridge-domain [bd_id] detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1460539972177,
+ "name": "List ifcs - oper",
+ "description": "",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
- "rawModeData": "{\r\n \"rewrite\": {\r\n \"vlan-type\": \"vpp-vlan:802dot1q\",\r\n \"pop-tags\": \"1\",\r\n \"push-tags\": [\r\n {\r\n \"index\": 0,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:s-vlan\",\r\n \"vlan-id\": 111\r\n }\r\n },\r\n {\r\n \"index\": 1,\r\n \"dot1q-tag\": {\r\n \"tag-type\": \"dot1q-types:c-vlan\",\r\n \"vlan-id\": 222\r\n }\r\n }\r\n ]\r\n }\r\n}"
+ "rawModeData": "{\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}"
},
{
- "id": "edb51cd5-a0dc-2023-ac6f-fadf149fe03f",
+ "id": "f14032c0-0cf5-eda6-17ee-df25cdd2c9a8",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
"url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F9%2F0/vpp-vlan:sub-interfaces/sub-interface/1/l2",
"preRequestScript": "",
@@ -1400,15 +1415,15 @@
"time": 1464813539029,
"name": "Add sub interface to bridge-domain",
"description": "Adds sub interface to bridge domain. Corresponsing vpp cli command:\n\nvppctl set interface l2 bridge GigabitEthernet0/9/0.1 1 1\n\nTo verify invoke:\nvppctl show bridge-domain 1 detail",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "55357445-d54b-066c-3bea-c200cebf1e92",
+ "folder": "abc82bb5-d1f3-62f1-edf6-1bf42d2fa934",
"rawModeData": "{\r\n \"l2\": {\r\n \"bridge-domain\": \"testBD\",\r\n \"split-horizon-group\": 1,\r\n \"bridged-virtual-interface\": \"false\"\r\n }\r\n}"
},
{
- "id": "f09e1447-a795-bfd7-bfc5-5a7be330bb4e",
+ "id": "f178b4ba-6251-2ec8-5136-2c1b27607c63",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/",
+ "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/ipv4",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -1418,38 +1433,60 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1460539972177,
- "name": "List ifcs - oper",
+ "time": 1465473594194,
+ "name": "Read local0/ipv4 - oper",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
+ "folder": "7b451147-ea78-d975-a181-3cfd854150f3",
"rawModeData": "{\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}"
},
{
- "id": "f217a13f-6b83-8ce7-e214-ffce25eeb49f",
- "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
- "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD/l2-fib-table/l2-fib-entry/11:22:33:44:55:66",
+ "id": "f5f9a89d-3082-0e3f-acb1-50f5b021773c",
+ "headers": "",
+ "url": "http://localhost:8181/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/",
+ "pathVariables": {},
+ "preRequestScript": null,
+ "method": "GET",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "data": null,
+ "dataMode": "params",
+ "name": "Show local0 - oper",
+ "description": "Shows local0 interface operational state",
+ "descriptionFormat": "html",
+ "time": 1465805719840,
+ "version": 2,
+ "responses": [],
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
+ },
+ {
+ "id": "f6d01ff6-5177-3159-a46c-7c55b2271eda",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/classify-table/table1",
"preRequestScript": "",
"pathVariables": {},
- "method": "PUT",
+ "method": "DELETE",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1465806064247,
- "name": "Add L2 FIB entry (static, forward)",
- "description": "Adds L2 FIB static entry. Corresponds to invoking:\n\nvppctl l2fib add 11:22:33:44:55:66 [bd_id] local0 static\n\nTo verify run:\n\nvppctl show l2fib verbose",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1467377388428,
+ "name": "Remove classify table1",
+ "description": "Removes classify table1. Corresponds to the following command:\n\nvppctl classify table del table 1\n\nTo verify invoke:\n\nvppctl sh class table verbose",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\n \"l2-fib-entry\": [\n {\n \"phys-address\": \"11:22:33:44:55:66\",\n \"outgoing-interface\": \"local0\",\n \"static-config\": \"true\",\n \"action\": \"l2-fib-forward\"\n }\n ]\n}",
- "folder": "fc3c82bf-4a35-3b1a-8abf-ae22a8b23245"
+ "folder": "0427ac53-1e1f-941c-d946-bc957138e36d",
+ "rawModeData": ""
},
{
- "id": "f5cee354-228f-6009-b7fc-25e5cdc7160a",
+ "id": "f7cf288f-03c4-2b16-c54e-7668a49f6080",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/tapp2",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
@@ -1459,18 +1496,38 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1462796801468,
- "name": "Modify complex tap ifc - cfg",
+ "time": 1460636113690,
+ "name": "Set interfaces bulk edit - cfg",
"description": "",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"tapp2\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:tap\",\r\n \"tap\" :{\r\n \"tap-name\" : \"tapp2\",\r\n \"mac\" : \"00:ff:ff:ff:ff:ae\",\r\n \"device-instance\" : 77\r\n }\r\n }\r\n ]\r\n \r\n}",
- "folder": "1919a15e-e9a8-679d-ab82-c6092d66275d"
+ "rawModeData": "{\n \"interfaces\": {\n \"interface\": [\n {\n \"name\": \"pg/stream-2\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"pg/stream-3\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"pg/stream-0\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n {\n \"name\": \"local0\",\n \"description\": \"for testing purposes\",\n \"type\": \"iana-if-type:ethernetCsmacd\",\n \"enabled\": true\n },\n {\n \"name\": \"pg/stream-1\",\n \"enabled\": true,\n \"type\": \"iana-if-type:ethernetCsmacd\"\n }\n ]\n }\n}"
},
{
- "id": "fcf13df2-42a1-d949-9334-079cd740fc7b",
+ "id": "f925a3d2-9637-13d7-cdca-104441c47448",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8181/restconf/config/vpp-classifier:vpp-classifier/",
+ "url": "http://localhost:8181/restconf/config/ietf-interfaces:interfaces/interface/vhost1",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1462891472552,
+ "name": "Add vhost user ifc - cfg",
+ "description": "Adds vhost-user interface.\nCorresponsing vpp cli command:\n\ncreate vhost-user socket /tmp/soc1 server\n\nTo verify invoke:\n\nvppctl show vhost-user\n\nor\n\nvppctl show int",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
+ "responses": [],
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"vhost1\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:vhost-user\",\r\n \"enabled\": \"true\",\r\n \"vhost-user\" : {\r\n \"socket\": \"/tmp/soc1\",\r\n \"role\": \"server\"\r\n }\r\n }\r\n ]\r\n \r\n}",
+ "folder": "0b5df1f1-57ca-15d3-afde-ab0779938ecd"
+ },
+ {
+ "id": "fe6f90d8-6997-1dcf-3b73-2864c8695398",
+ "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
+ "url": "http://localhost:8181/restconf/config/v3po:vpp/bridge-domains/bridge-domain/testBD",
"preRequestScript": "",
"pathVariables": {},
"method": "GET",
@@ -1480,13 +1537,13 @@
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
- "time": 1467377260818,
- "name": "Get classify tables - cfg",
- "description": "Shows classify table configuration.",
- "collectionId": "58101efe-318b-fd9c-b1e8-096101036acf",
+ "time": 1465806733493,
+ "name": "Show bridge domain - cfg",
+ "description": "Shows testBD bridge domain configuration.",
+ "collectionId": "c1e36b0e-9960-992d-10d9-70e84c7ec53d",
"responses": [],
- "folder": "00c0b533-2d7c-f428-09e8-1cfcf1d62365",
- "rawModeData": ""
+ "rawModeData": "{\r\n \"bridge-domain\": [\r\n {\r\n \"name\": \"testBD\",\r\n \"flood\": \"true\",\r\n \"forward\": \"false\",\r\n \"learn\": \"false\",\r\n \"unknown-unicast-flood\": \"false\",\r\n \"arp-termination\": \"false\"\r\n }\r\n ]\r\n}",
+ "folder": "415867f0-cdab-3ae4-9e42-a5b444829f5e"
}
]
} \ No newline at end of file
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizer.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizer.java
new file mode 100644
index 000000000..ea478ce53
--- /dev/null
+++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizer.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright (c) 2016 Cisco and/or its affiliates.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.fd.honeycomb.translate.v3po.interfaces;
+
+import com.google.common.net.InetAddresses;
+import io.fd.honeycomb.translate.spi.write.WriterCustomizer;
+import io.fd.honeycomb.translate.v3po.util.FutureJVppCustomizer;
+import io.fd.honeycomb.translate.spi.write.WriterCustomizer;
+import io.fd.honeycomb.translate.v3po.util.FutureJVppCustomizer;
+import io.fd.honeycomb.translate.v3po.util.NamingContext;
+import io.fd.honeycomb.translate.v3po.util.TranslateUtils;
+import io.fd.honeycomb.translate.write.WriteContext;
+import io.fd.honeycomb.translate.write.WriteFailedException;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.ProxyArp;
+import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+import org.openvpp.jvpp.VppBaseCallException;
+import org.openvpp.jvpp.dto.ProxyArpAddDel;
+import org.openvpp.jvpp.dto.ProxyArpAddDelReply;
+import org.openvpp.jvpp.future.FutureJVpp;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.annotation.Nonnull;
+import java.net.InetAddress;
+import java.util.concurrent.CompletionStage;
+
+
+public class ProxyArpCustomizer extends FutureJVppCustomizer implements WriterCustomizer<ProxyArp> {
+
+ private static final Logger LOG = LoggerFactory.getLogger(ProxyArpCustomizer.class);
+ private final NamingContext interfaceContext;
+
+ public ProxyArpCustomizer(final FutureJVpp vppApi, final NamingContext interfaceContext) {
+ super(vppApi);
+ this.interfaceContext = interfaceContext;
+ }
+
+ @Override
+ public void writeCurrentAttributes(@Nonnull InstanceIdentifier<ProxyArp> id, @Nonnull ProxyArp dataAfter, @Nonnull WriteContext writeContext) throws WriteFailedException {
+ final String swIfName = id.firstKeyOf(Interface.class).getName();
+
+ try {
+ setProxyArp(id, swIfName, dataAfter, writeContext, (byte) 1 /* 1 is add */);
+ } catch (VppBaseCallException e) {
+ LOG.error("Failed to set Proxy ARP settings: {}, for interface: {}", dataAfter, swIfName);
+ throw new WriteFailedException(id, dataAfter.toString(), e);
+ }
+ }
+
+ @Override
+ public void updateCurrentAttributes(@Nonnull InstanceIdentifier<ProxyArp> id, @Nonnull ProxyArp dataBefore,
+ @Nonnull ProxyArp dataAfter, @Nonnull WriteContext writeContext)
+ throws WriteFailedException.UpdateFailedException {
+ throw new WriteFailedException.UpdateFailedException(id, dataBefore, dataAfter,
+ new UnsupportedOperationException("ARP proxy update is not supported"));
+ }
+
+ @Override
+ public void deleteCurrentAttributes(@Nonnull InstanceIdentifier<ProxyArp> id, @Nonnull ProxyArp dataBefore,
+ @Nonnull WriteContext writeContext) throws WriteFailedException {
+
+ final String swIfName = id.firstKeyOf(Interface.class).getName();
+ try {
+ setProxyArp(id, swIfName, dataBefore, writeContext, (byte) 0 /* 0 is delete */);
+ } catch (VppBaseCallException e) {
+ LOG.debug("Failed to delete Proxy ARP settings: {}, for interface: {}", dataBefore, swIfName);
+ throw new WriteFailedException.DeleteFailedException(id, e);
+ }
+ }
+
+ private void setProxyArp(InstanceIdentifier<ProxyArp> id, String swIfName, ProxyArp proxyArp, WriteContext
+ writeContext, byte operation) throws VppBaseCallException, WriteFailedException {
+
+ LOG.debug("Setting Proxy ARP settings for interface: {}", swIfName);
+ final InetAddress srcAddress = InetAddresses.forString(getv4AddressString(proxyArp.getLowAddr()));
+ final InetAddress dstAddress = InetAddresses.forString(getv4AddressString(proxyArp.getHighAddr()));
+ final int vrfId = proxyArp.getVrfId().intValue();
+ final CompletionStage<ProxyArpAddDelReply> proxyArpAddDelReplyCompletionStage =
+ getFutureJVpp().proxyArpAddDel(getProxyArpConfRequest(operation, srcAddress.getAddress(),
+ dstAddress.getAddress(), vrfId));
+
+ final ProxyArpAddDelReply reply =
+ TranslateUtils.getReplyForWrite(proxyArpAddDelReplyCompletionStage.toCompletableFuture(), id);
+ LOG.debug("Proxy ARP setting applied, with reply context:", reply.context);
+ }
+
+ private static ProxyArpAddDel getProxyArpConfRequest(final byte isAdd, final byte[] lAddr, final byte[] hAddr,
+ final int vrfId) {
+
+ final ProxyArpAddDel proxyArpAddDel = new ProxyArpAddDel();
+ proxyArpAddDel.isAdd = isAdd;
+ proxyArpAddDel.lowAddress = lAddr;
+ proxyArpAddDel.hiAddress = hAddr;
+ proxyArpAddDel.vrfId = vrfId;
+ return proxyArpAddDel;
+ }
+
+ private String getv4AddressString(@Nonnull final Ipv4Address addr) {
+ return addr.getValue();
+ }
+}
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfacesstate/ProxyArpCustomizer.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfacesstate/ProxyArpCustomizer.java
new file mode 100644
index 000000000..07e7ff069
--- /dev/null
+++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfacesstate/ProxyArpCustomizer.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright (c) 2016 Cisco and/or its affiliates.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.fd.honeycomb.translate.v3po.interfacesstate;
+
+import io.fd.honeycomb.translate.read.ReadContext;
+import io.fd.honeycomb.translate.read.ReadFailedException;
+import io.fd.honeycomb.translate.spi.read.ReaderCustomizer;
+import io.fd.honeycomb.translate.v3po.util.FutureJVppCustomizer;
+import io.fd.honeycomb.translate.v3po.util.NamingContext;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.InterfaceKey;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.VppInterfaceStateAugmentationBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.ProxyArp;
+import org.opendaylight.yangtools.concepts.Builder;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+import org.openvpp.jvpp.future.FutureJVpp;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.annotation.Nonnull;
+
+public class ProxyArpCustomizer extends FutureJVppCustomizer
+ implements ReaderCustomizer<ProxyArp,
+ org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.
+ state._interface.ProxyArpBuilder> {
+
+ private static final Logger LOG = LoggerFactory.getLogger(ProxyArpCustomizer.class);
+ private final NamingContext interfaceContext;
+
+ public ProxyArpCustomizer(final FutureJVpp vppApi, final NamingContext interfaceContext) {
+ super(vppApi);
+ this.interfaceContext = interfaceContext;
+ }
+
+ @Override
+ public void merge(@Nonnull Builder<? extends DataObject> parentBuilder,
+ @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105
+ .interfaces.state._interface.ProxyArp readValue) {
+
+ ((VppInterfaceStateAugmentationBuilder) parentBuilder).setProxyArp(readValue);
+ }
+
+ @Nonnull
+ @Override
+ public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state
+ ._interface.ProxyArpBuilder getBuilder(
+ @Nonnull InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight
+ .params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.ProxyArp> id) {
+
+ return new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces
+ .state._interface.ProxyArpBuilder();
+ }
+
+ @Override
+ public void readCurrentAttributes(@Nonnull InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight
+ .params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.ProxyArp> id,
+ @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po
+ .rev150105.interfaces.state._interface.ProxyArpBuilder builder,
+ @Nonnull ReadContext ctx) throws ReadFailedException {
+
+ //TODO: Implement fully when VPP Proxy ARP read API is available
+ // https://jira.fd.io/browse/VPP-225
+ final InterfaceKey key = id.firstKeyOf(Interface.class);
+ final int index = interfaceContext.getIndex(key.getName(), ctx.getMappingContext());
+ LOG.warn("Reading of ARP data not (yet) supported by VPP API");
+ }
+}
diff --git a/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesHoneycombWriterModule.java b/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesHoneycombWriterModule.java
index d0a868319..d99fd2edb 100644
--- a/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesHoneycombWriterModule.java
+++ b/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesHoneycombWriterModule.java
@@ -11,6 +11,7 @@ import io.fd.honeycomb.translate.v3po.interfaces.EthernetCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.GreCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.InterfaceCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.L2Customizer;
+import io.fd.honeycomb.translate.v3po.interfaces.ProxyArpCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.RoutingCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.TapCustomizer;
import io.fd.honeycomb.translate.v3po.interfaces.VhostUserCustomizer;
@@ -38,6 +39,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.Acl;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.Ethernet;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.L2;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.ProxyArp;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.Routing;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.Tap;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces._interface.VhostUser;
@@ -170,7 +172,10 @@ public class InterfacesHoneycombWriterModule extends
// Routing(Execute only after specific interface customizers) =
registry.addAfter(new GenericWriter<>(L2_ID, new L2Customizer(jvpp, ifcContext, bdContext)),
specificIfcTypes);
-
+ // Proxy Arp (execute after specific interface customizers)
+ registry.addAfter(
+ new GenericWriter<>(VPP_IFC_AUG_ID.child(ProxyArp.class), new ProxyArpCustomizer(jvpp, ifcContext)),
+ specificIfcTypes);
// ACL (execute after classify table and session writers)
// also handles L2Acl, Ip4Acl and Ip6Acl:
final InstanceIdentifier<Acl> aclId = InstanceIdentifier.create(Acl.class);
diff --git a/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesStateHoneycombReaderModule.java b/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesStateHoneycombReaderModule.java
index 5b4450a91..d914facbf 100644
--- a/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesStateHoneycombReaderModule.java
+++ b/v3po/v3po2vpp/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/v3po2vpp/rev160406/InterfacesStateHoneycombReaderModule.java
@@ -10,6 +10,7 @@ import io.fd.honeycomb.translate.v3po.interfacesstate.EthernetCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.GreCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.InterfaceCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.L2Customizer;
+import io.fd.honeycomb.translate.v3po.interfacesstate.ProxyArpCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.TapCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.VhostUserCustomizer;
import io.fd.honeycomb.translate.v3po.interfacesstate.VxlanCustomizer;
@@ -36,6 +37,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.Acl;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.Ethernet;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.L2;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.ProxyArp;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.Tap;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.VhostUser;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.interfaces.state._interface.Vxlan;
@@ -154,7 +156,9 @@ public class InterfacesStateHoneycombReaderModule extends
registry.subtreeAdd(
Sets.newHashSet(aclIdRelative.child(L2Acl.class), aclIdRelative.child(Ip4Acl.class), aclIdRelative.child(Ip6Acl.class)),
new GenericReader<>(vppIfcAugId.child(Acl.class), new AclCustomizer(jvpp, ifcCtx, classifyCtx)));
-
+ // Proxy ARP
+ registry.add(new GenericReader<>(vppIfcAugId.child(ProxyArp.class), new ProxyArpCustomizer(jvpp,
+ ifcCtx)));
}
}
}
diff --git a/v3po/v3po2vpp/src/test/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizerTest.java b/v3po/v3po2vpp/src/test/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizerTest.java
new file mode 100644
index 000000000..c16d7baa1
--- /dev/null
+++ b/v3po/v3po2vpp/src/test/java/io/fd/honeycomb/translate/v3po/interfaces/ProxyArpCustomizerTest.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2016 Cisco and/or its affiliates.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package io.fd.honeycomb.translate.v3po.interfaces;
+
+import io.fd.honeycomb.translate.v3po.interfaces.ProxyArpCustomizer;
+import io.fd.honeycomb.translate.MappingContext;
+import io.fd.honeycomb.translate.v3po.util.NamingContext;
+import io.fd.honeycomb.translate.write.WriteContext;
+import org.junit.Before;
+import org.mockito.Mock;
+import org.mockito.MockitoAnnotations;
+import org.openvpp.jvpp.future.FutureJVpp;
+
+import static org.mockito.Mockito.doReturn;
+
+public class ProxyArpCustomizerTest {
+
+ @Mock
+ private FutureJVpp vppApi;
+ @Mock
+ private WriteContext writeContext;
+ @Mock
+ private MappingContext mappingContext;
+
+ private ProxyArpCustomizer proxyArpCustomizer;
+ private NamingContext namingContext;
+
+ @Before
+ protected void setUp() throws Exception {
+ MockitoAnnotations.initMocks(this);
+ namingContext = new NamingContext("generatedSubInterfaceName", "test-instance");
+ doReturn(mappingContext).when(writeContext).getMappingContext();
+
+ proxyArpCustomizer = new ProxyArpCustomizer(vppApi, namingContext);
+ }
+}