Sync: md-sal augmentation re-model with broker. Traffic profile: Best Effort hooked up.
[packetcable.git] / packetcable-client / base.text
1 # Something from the real world
2
3 # 0. Create a new cmts for adding cableflows
4 # Operation: POST
5 # URI: http://192.168.11.1:8181/restconf/config/opendaylight-inventory:nodes/node/cmts:1
6 # /restconf/config/opendaylight-inventory:nodes/node/cmts:1
7
8 cmts1 = {
9     "cmts": {
10         "name": "SunnyvaleCMTS",
11         "id": "2",
12         "enable": "true",
13         "ipaddress": "10.200.90.3",
14         "port": 3918,
15     }
16 }
17
18 # 1. Create a new flow on the switch cableflow:1 (in table 1)
19 # Operation: POST
20 # URI: http://192.168.11.1:8181/restconf/config/opendaylight-inventory:nodes/node/cableflow:1
21 # /restconf/config/opendaylight-inventory:nodes/node/cableflow:1
22
23
24 cableflow1 = {
25     "flow": {
26         "barrier": "false",
27         "flow-name": "FooXCableFlow1",
28         "id": "111",
29         "installHw": "false",
30         "instructions": {
31             "instruction": {
32                 "apply-actions": {
33                     "action": {
34                         "drop-action": null,
35                         "order": "0"
36                     }
37                     "action": {
38                         traffic-profile": "best-effort",
39                         "order": "0"
40                     }
41                 },
42                 "order": "1"
43             }
44         },
45         "match": {
46             "ethernet-match": {
47                 "ethernet-type": {
48                     "type": "2048"
49                 }
50             },
51             "ipv4-destination": "10.0.0.1/24"
52         },
53         "priority": "2",
54     }
55 }
56
57
58 # 2. Change strict to true in previous flow
59 # Operation: PUT
60 # URI: http://192.168.11.1:8080/restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
61 # /restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
62
63 cableflow2 = {
64     "flow": {
65         "barrier": "false",
66         "flow-name": "FooXCableFlow2",
67         "id": "111",
68         "installHw": "false",
69         "instructions": {
70             "instruction": {
71                 "apply-actions": {
72                     "action": {
73                         traffic-profile": "best-effort",
74                         "order": "0"
75                     }
76                 },
77                 "order": "0"
78             }
79         },
80         "match": {
81             "ethernet-match": {
82                 "ethernet-type": {
83                     "type": "2048"
84                 }
85             },
86             "ipv4-destination": "10.0.0.1/24"
87         },
88         "priority": "2",
89     }
90 }
91
92 # 3. Show flow - check that strict is true
93 # Operation: GET
94 # URI: http://192.168.11.1:8080/restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
95 # /restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
96
97 #4. Delete created flow
98 # Operation: DELETE
99 # URI: http://192.168.11.1:8080/restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
100 # /restconf/config/opendaylight-inventory:nodes/node/cableflow:1/table/1/flow/111
101