{ "info": { "_postman_id": "b30b26ab-fd5f-368f-713a-4c72315cf663", "name": "Span interface/subinterface collection", "description": "Provides model request to define pot mirroring for interfaces and sub-interfaces", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "_postman_id": "60b007c3-5051-41ea-8551-d55af4e6368c", "name": "Interface <==> Interface", "description": "", "item": [ { "_postman_id": "58bdf949-ea9d-4ba6-a00f-98082ca13c02", "name": "Set port mirroring local0 -> GigabiteEthernet0/8/0", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"local0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/span", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F8%2F0", "span" ] }, "description": "set span src local0 dst GigabiteEthernet0/8/0" }, "response": [] }, { "_postman_id": "397737f1-a9b1-4eca-8cd5-7f629b5fd950", "name": "Read port mirroring", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/span", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces-state", "interface", "GigabitEthernet0%2F8%2F0", "span" ] }, "description": "show span" }, "response": [] }, { "_postman_id": "45f66ad7-c241-4d2a-bacf-cc3d5d4c54aa", "name": "Delete port mirroring local0 -> GigabiteEthernet0/8/0", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/span", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F8%2F0", "span" ] } }, "response": [] } ] }, { "_postman_id": "9b32a9d3-72cd-4c5e-ab04-1f1ec2908448", "name": "Interface <==> SubInterface", "description": "", "item": [ { "_postman_id": "a34159b3-e209-4dee-b26a-40705dd0987e", "name": "Set port mirroring GigabitEthernet0/8/0 to GigabitEthernet0/8/0.1", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F8%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "span" ] }, "description": "set span src local0 dst GigabiteEthernet0/8/0" }, "response": [] }, { "_postman_id": "c1ff26ff-2632-4f21-bec5-40e374e97930", "name": "Read port mirroring", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span-state", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "operational", "ietf-interfaces:interfaces-state", "interface", "GigabitEthernet0%2F8%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "span-state" ] }, "description": "set span src local0 dst GigabiteEthernet0/8/0" }, "response": [] }, { "_postman_id": "d47857c5-983b-4fbf-a235-cc48653cbf2d", "name": "Delete port mirroring", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" }, "url": { "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", "protocol": "http", "host": [ "localhost" ], "port": "8183", "path": [ "restconf", "config", "ietf-interfaces:interfaces", "interface", "GigabitEthernet0%2F8%2F0", "vpp-vlan:sub-interfaces", "sub-interface", "1", "span" ] }, "description": "set span src local0 dst GigabiteEthernet0/8/0" }, "response": [] } ] } ] }