summaryrefslogtreecommitdiffstats
path: root/srv6/srv6_policy_postman_collection.json
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-06-15 13:12:53 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-19 18:56:53 +0000
commitb77a5725338dc700873b36c98af85d70acd7bbe4 (patch)
tree6006938757b2f3ac28eabc90eff821b3290f50af /srv6/srv6_policy_postman_collection.json
parenta0884f2792c31a3a93fb1654ceea754b6c612920 (diff)
HC2VPP-304 - add SRv6 policy module
new models: - hc2vpp-oc-srte-policy@2017-09-18.yang (ietf draft for srte-policies) - vpp-oc-srte-policy@2018-05-14.yang (augments oc-srte-policy model with VPP specific configuration) - policy-context@2018-06-07.yang defines policy contexts for policies and candidate paths new features: - adds support for writing/reading SRv6 policies - adds support for writing/reading L2 steering - adds support for writing/reading L3 steering - implements support for FIB table management (HC2VPP-345) Change-Id: Ie83ac8ecdcc0e46086e1ecdaecbb811746151c2f Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'srv6/srv6_policy_postman_collection.json')
-rwxr-xr-xsrv6/srv6_policy_postman_collection.json282
1 files changed, 282 insertions, 0 deletions
diff --git a/srv6/srv6_policy_postman_collection.json b/srv6/srv6_policy_postman_collection.json
new file mode 100755
index 000000000..1d9ca4ebb
--- /dev/null
+++ b/srv6/srv6_policy_postman_collection.json
@@ -0,0 +1,282 @@
+{
+ "info": {
+ "_postman_id": "9c24a300-8374-4574-b179-650a3c836439",
+ "name": "SRv6 Policy",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "1. Write IPv6 FIB 0 (to store SRv6 policies)",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ },
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"vpp-fib-table-management:table\": [\n {\n \"table-id\": 0,\n \"address-family\": \"vpp-fib-table-management:ipv6\",\n \"name\": \"ipv6-VRF:0\"\n }\n ]\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/vpp-fib-table-management:fib-table-management/vpp-fib-table-management:fib-tables/table/0/vpp-fib-table-management:ipv6",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "vpp-fib-table-management:fib-table-management",
+ "vpp-fib-table-management:fib-tables",
+ "table",
+ "0",
+ "vpp-fib-table-management:ipv6"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "2. SRv6 policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "admin",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "admin",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"hc2vpp-oc-srte-policy:segment-routing\": {\n\t\t\"traffic-engineering\": {\n\t\t\t\"named-segment-lists\": {\n\t\t\t\t\"named-segment-list\": [{\n\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e-1\"\n\t\t\t\t\t},\n\t\t\t\t\t\"segments\": {\n\t\t\t\t\t\t\"segment\": [{\n\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"a::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"d::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"e::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e-2\"\n\t\t\t\t\t},\n\t\t\t\t\t\"segments\": {\n\t\t\t\t\t\t\"segment\": [{\n\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"d::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 2,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"e::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"index\": 3,\n\t\t\t\t\t\t\t\t\"type\": \"type-2\",\n\t\t\t\t\t\t\t\t\"sid-value\": \"a::\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t}\n\t\t\t\t}]\n\t\t\t},\n\t\t\t\"policies\": {\n\t\t\t\t\"policy\": [{\n\t\t\t\t\t\"name\": \"a::e\",\n\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\"name\": \"a::e\",\n\t\t\t\t\t\t\"color\": 1,\n\t\t\t\t\t\t\"endpoint\": \"e::1\",\n\t\t\t\t\t\t\"admin-state\": \"UP\"\n\t\t\t\t\t},\n\t\t\t\t\t\"color\": 1,\n\t\t\t\t\t\"endpoint\": \"e::1\",\n\t\t\t\t\t\"candidate-paths\": {\n\t\t\t\t\t\t\"candidate-path\": [{\n\t\t\t\t\t\t\t\"name\": \"candidatePath1\",\n\t\t\t\t\t\t\t\"provisioning-method\": \"provisioning-method-config\",\n\t\t\t\t\t\t\t\"preference\": 100,\n\t\t\t\t\t\t\t\"distinguisher\": 0,\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"name\": \"candidatePath1\",\n\t\t\t\t\t\t\t\t\"provisioning-method\": \"provisioning-method-config\",\n\t\t\t\t\t\t\t\t\"computation-method\": \"path-explicitly-defined\",\n\t\t\t\t\t\t\t\t\"preference\": 100,\n\t\t\t\t\t\t\t\t\"distinguisher\": 0\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"binding-sid\": {\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"alloc-mode\": \"explicit\",\n\t\t\t\t\t\t\t\t\t\"type\": \"srv6\",\n\t\t\t\t\t\t\t\t\t\"value\": \"a::e\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"segment-lists\": {\n\t\t\t\t\t\t\t\t\"segment-list\": [{\n\t\t\t\t\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\t\"name\": \"a::e-1\",\n\t\t\t\t\t\t\t\t\t\t\"weight\": 1\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\t\"name\": \"a::e-2\",\n\t\t\t\t\t\t\t\t\t\t\"weight\": 2\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}]\n\t\t\t\t\t},\n\t\t\t\t\t\"autoroute-include\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"metric-type\": \"constant\",\n\t\t\t\t\t\t\t\"metric-constant\": 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"prefixes\": {\n\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\"prefixes-all\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"prefix\": [{\n\t\t\t\t\t\t\t\t\"ip-prefix\": \"e::/64\",\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"ip-prefix\": \"e::/64\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"interfaces\": {\n\t\t\t\t\t\t\t\"interface\": [{\n\t\t\t\t\t\t\t\t\"input-interface\": \"loop0\",\n\t\t\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\t\t\"input-interface\": \"loop0\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"binding-sid\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"alloc-mode\": \"explicit\",\n\t\t\t\t\t\t\t\"type\": \"srv6\",\n\t\t\t\t\t\t\t\"value\": \"a::e\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"vpp-oc-srte-policy:vpp-sr-policy\": {\n\t\t\t\t\t\t\"config\": {\n\t\t\t\t\t\t\t\"policy-type\": \"Default\",\n\t\t\t\t\t\t\t\"policy-behavior\": \"Encapsulation\",\n\t\t\t\t\t\t\t\"table-id\": 0,\n \t\t\t\t\t\"address-family\": \"vpp-fib-table-management:ipv6\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}]\n\t\t\t}\n\t\t}\n\t}\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/hc2vpp-oc-srte-policy:segment-routing",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "hc2vpp-oc-srte-policy:segment-routing"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "CandidatePathContext Read",
+ "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/naming-context:contexts\\srv6-candidate-path-mappings",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "naming-context:contexts\\srv6-candidate-path-mappings"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "PolicyContext Read",
+ "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/naming-context:contexts\\srv6-policy-mappings",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "naming-context:contexts\\srv6-policy-mappings"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Segment routing - traffic engineering read oper",
+ "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/hc2vpp-oc-srte-policy:segment-routing/traffic-engineering/",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "hc2vpp-oc-srte-policy:segment-routing",
+ "traffic-engineering",
+ ""
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "autoroute include for policy (color 1, ep e::1)",
+ "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/hc2vpp-oc-srte-policy:segment-routing/traffic-engineering/policies/policy/1/e::1/autoroute-include/",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "hc2vpp-oc-srte-policy:segment-routing",
+ "traffic-engineering",
+ "policies",
+ "policy",
+ "1",
+ "e::1",
+ "autoroute-include",
+ ""
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "SRv6 policy delete",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "admin",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "admin",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "DELETE",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/hc2vpp-oc-srte-policy:segment-routing",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "hc2vpp-oc-srte-policy:segment-routing"
+ ]
+ }
+ },
+ "response": []
+ }
+ ]
+} \ No newline at end of file