Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@controller00-neutron-server-container-65096b03:~# curl -u admin:admin -H 'Content-type: application/json' -X GET http://127.0.0.1:8181/restconf/config/neutron:neutron/sfc-flow-classifiers | python -m json.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 421 0 421 0 0 25022 0 --:--:-- --:--:-- --:--:-- 26312
- {
- "sfc-flow-classifiers": {
- "sfc-flow-classifier": [
- {
- "destination-port-range-max": 80,
- "destination-port-range-min": 80,
- "ethertype": "neutron-constants:ethertype-v4",
- "logical-source-port": "95c3c665-9cad-47fb-8479-899625e14292",
- "name": "",
- "project-id": "86a51e8f11614d43b574d4fe24ad6367",
- "protocol": "neutron-constants:protocol-tcp",
- "tenant-id": "86a51e8f-1161-4d43-b574-d4fe24ad6367",
- "uuid": "00cb97f8-8513-45c0-89ec-155bb6995694"
- }
- ]
- }
- }
- root@controller00-neutron-server-container-65096b03:~# curl -u admin:admin -H 'Content-type: application/json' -X GET http://127.0.0.1:8181/restconf/config/ietf-access-control-list:access-lists/ | python -m json.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 4051 0 4051 0 0 330k 0 --:--:-- --:--:-- --:--:-- 359k
- {
- "access-lists": {
- "acl": [
- {
- "access-list-entries": {
- "ace": [
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv6-network": "::/0",
- "source-ipv6-network": "::/0"
- },
- "rule-name": "6e4f5552-80ae-400f-a48f-427252af1f08"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "aclservice:remote-group-id": "a637b4b3-9ecb-431f-8c30-30df3d0020f6",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "b8b1d5bf-9501-4d19-b094-b0b68fe5a086"
- },
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "f1a85b6e-e42c-4a53-9269-791edffbe202"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "aclservice:remote-group-id": "a637b4b3-9ecb-431f-8c30-30df3d0020f6",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv6-network": "::/0",
- "source-ipv6-network": "::/0"
- },
- "rule-name": "f57406ba-417e-4e08-bb74-406515de20b3"
- }
- ]
- },
- "acl-name": "a637b4b3-9ecb-431f-8c30-30df3d0020f6",
- "acl-type": "ietf-access-control-list:ipv4-acl"
- },
- {
- "access-list-entries": {
- "ace": [
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "aclservice:remote-group-id": "48246ee0-f425-4864-a4e5-f4a2ee8ae5a6",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "210477b1-1d0c-4369-bc67-95224150e465"
- },
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "3daa2ec3-f775-4209-a985-15e7e75a4cfa"
- },
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv6-network": "::/0",
- "source-ipv6-network": "::/0"
- },
- "rule-name": "45588ad1-e451-4d64-aa19-da4ca3b64a39"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "aclservice:remote-group-id": "48246ee0-f425-4864-a4e5-f4a2ee8ae5a6",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv6-network": "::/0",
- "source-ipv6-network": "::/0"
- },
- "rule-name": "6848cdf5-5d1f-44dc-8fac-3453147cb1f2"
- }
- ]
- },
- "acl-name": "48246ee0-f425-4864-a4e5-f4a2ee8ae5a6",
- "acl-type": "ietf-access-control-list:ipv4-acl"
- },
- {
- "access-list-entries": {
- "ace": [
- {
- "actions": {
- "netvirt-sfc-acl:sfp-name": "Path-red_http-port-chain"
- },
- "matches": {
- "destination-port-range": {
- "lower-port": 80
- },
- "netvirt-sfc-acl:source-port-uuid": "95c3c665-9cad-47fb-8479-899625e14292",
- "protocol": 6
- },
- "rule-name": "00cb97f8-8513-45c0-89ec-155bb6995694__rule"
- }
- ]
- },
- "acl-name": "00cb97f8-8513-45c0-89ec-155bb6995694_",
- "acl-type": "ietf-access-control-list:ipv4-acl"
- },
- {
- "access-list-entries": {
- "ace": [
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "33e28655-5b4d-4784-b0b3-00365a1d0ab1"
- },
- {
- "aclservice:direction": "aclservice:direction-egress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv6-network": "::/0",
- "source-ipv6-network": "::/0"
- },
- "rule-name": "81e73b7f-f02c-4b94-8298-9979dcf5cbb8"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "protocol": 1,
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "167ce86b-6a78-406c-9d99-ac3de85ccdac"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "destination-port-range": {
- "lower-port": 22,
- "upper-port": 22
- },
- "protocol": 6,
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "19939d25-ce89-45f5-9f70-c6870ddf2a4d"
- },
- {
- "aclservice:direction": "aclservice:direction-ingress",
- "actions": {
- "permit": [
- null
- ]
- },
- "matches": {
- "destination-ipv4-network": "0.0.0.0/0",
- "destination-port-range": {
- "lower-port": 80,
- "upper-port": 80
- },
- "protocol": 6,
- "source-ipv4-network": "0.0.0.0/0"
- },
- "rule-name": "c4473f5f-6b14-4e87-9c1e-813bc4568ad4"
- }
- ]
- },
- "acl-name": "c57b65ae-505a-4bdf-b436-cd5391b48628",
- "acl-type": "ietf-access-control-list:ipv4-acl"
- }
- ]
- }
- }
- root@controller00-neutron-server-container-65096b03:~# curl -H "Content-Type: application/json" -X GET --user admin:admin http://127.0.0.1:8181/restconf/config/service-function-forwarder:service-function-forwarders/ | python -m json.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 1536 0 1536 0 0 89908 0 --:--:-- --:--:-- --:--:-- 96000
- {
- "service-function-forwarders": {
- "service-function-forwarder": [
- {
- "name": "Netvirt-Logical-SFF",
- "service-function-dictionary": [
- {
- "name": "testVNF2-connection-points",
- "sff-sf-data-plane-locator": {
- "sf-forward-dpl-name": "testVNF2-connection-points-ingress",
- "sf-reverse-dpl-name": "testVNF2-connection-points-egress",
- "sff-forward-dpl-name": "testVNF2-connection-points-ingress",
- "sff-reverse-dpl-name": "testVNF2-connection-points-egress"
- }
- },
- {
- "name": "testVNF1-connection-points",
- "sff-sf-data-plane-locator": {
- "sf-forward-dpl-name": "testVNF1-connection-points-ingress",
- "sf-reverse-dpl-name": "testVNF1-connection-points-egress",
- "sff-forward-dpl-name": "testVNF1-connection-points-ingress",
- "sff-reverse-dpl-name": "testVNF1-connection-points-egress"
- }
- }
- ],
- "sff-data-plane-locator": [
- {
- "data-plane-locator": {
- "service-function-forwarder-logical:interface-name": "8df74e00-e721-4df9-9513-9c1ed6023aa3",
- "transport": "service-locator:mac"
- },
- "name": "testVNF1-connection-points-egress"
- },
- {
- "data-plane-locator": {
- "service-function-forwarder-logical:interface-name": "220d6e7b-0a16-42db-be4c-ff5362fc3b37",
- "transport": "service-locator:mac"
- },
- "name": "testVNF2-connection-points-egress"
- },
- {
- "data-plane-locator": {
- "service-function-forwarder-logical:interface-name": "220d6e7b-0a16-42db-be4c-ff5362fc3b37",
- "transport": "service-locator:mac"
- },
- "name": "testVNF2-connection-points-ingress"
- },
- {
- "data-plane-locator": {
- "service-function-forwarder-logical:interface-name": "8df74e00-e721-4df9-9513-9c1ed6023aa3",
- "transport": "service-locator:mac"
- },
- "name": "testVNF1-connection-points-ingress"
- }
- ]
- }
- ]
- }
- }
- root@controller00-neutron-server-container-65096b03:~# curl -u admin:admin -H 'Content-type: application/json' -X GET http://127.0.0.1:8181/restconf/operational/rendered-service-path:rendered-service-paths/ | python -m json.tool
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 773 0 773 0 0 136k 0 --:--:-- --:--:-- --:--:-- 150k
- {
- "rendered-service-paths": {
- "rendered-service-path": [
- {
- "name": "Path-red_http-port-chain-Path-32",
- "parent-service-function-path": "Path-red_http-port-chain",
- "path-id": 32,
- "rendered-service-path-hop": [
- {
- "hop-number": 0,
- "service-function-forwarder": "Netvirt-Logical-SFF",
- "service-function-forwarder-logical:dpn-id": 154082732417954,
- "service-function-name": "testVNF2-connection-points",
- "service-index": 255
- },
- {
- "hop-number": 1,
- "service-function-forwarder": "Netvirt-Logical-SFF",
- "service-function-forwarder-logical:dpn-id": 154082732417954,
- "service-function-name": "testVNF1-connection-points",
- "service-index": 254
- }
- ],
- "reverse-path": false,
- "service-chain-name": "red_http-port-chain",
- "sfc-encapsulation": "service-locator:nsh",
- "starting-index": 255,
- "transport-type": "service-locator:vxlan-gpe"
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement