You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following creates a vxlan network called production under default tenant and assigns a subnet to it
50
+
Following creates a vxlan network called `production` under `default` tenant and assigns a subnet to it
50
51
51
52
```
52
53
vagrant@netplugin-node1:~$ contivctl network create production -encap=vxlan -subnet=20.20.20.0/24 -defaultGw=20.20.20.254
53
54
Creating network default:production
54
55
Network Create response is: {"key":"default:production","defaultGw":"20.20.20.254","encap":"vxlan","isPrivate":true,"networkName":"production","subnet":"20.20.20.0/24","tenantName":"default","link-sets":{},"links":{"Tenant":{"type":"tenant","key":"default"}}}
55
56
```
56
57
57
-
Following lists all networks under default tenant
58
+
Following lists all networks under `default` tenant
58
59
59
60
```
60
61
vagrant@netplugin-node1:~$ contivctl network list
@@ -65,14 +66,14 @@ public Yes vlan 192.168.1.0/24 192.168.1.254
65
66
production No vxlan 20.20.20.0/24 20.20.20.254
66
67
```
67
68
68
-
Following deletes a network from default tenant
69
+
Following deletes a network from `default` tenant
69
70
70
71
```
71
72
vagrant@netplugin-node1:~$ contivctl network delete production
Create policy response is: {"key":"default:webTier","policyName":"webTier","tenantName":"default","link-sets":{},"links":{"Tenant":{}}}
99
100
```
100
101
101
-
Following lists all policies under default tenant
102
+
Following lists all policies under `default` tenant
102
103
103
104
```
104
105
vagrant@netplugin-node1:~$ contivctl policy list
@@ -109,7 +110,7 @@ default first
109
110
default webTier
110
111
```
111
112
112
-
### Adding rules to a policy
113
+
### Rules
113
114
114
115
#### Usage
115
116
```
@@ -142,7 +143,7 @@ optional arguments:
142
143
Accept or deny
143
144
```
144
145
145
-
All rules have a rule Id which uniquely identifies the rule under a policy. Rule Id is a string that can be anything user chooses. Rule id does not specify the order in which rules are applied. User has to specify the priority for the rule. Higher the priority, higher preference a rule gets. In following example, we add a default deny rule which uses default priority 1 and a allow web traffic rule which is at higher priority 10.
146
+
All rules have a rule Id which uniquely identifies the rule under a policy. Rule Id is a string that can be anything user chooses. Rule id does not specify the order in which rules are applied. User has to specify the priority for the rule. Higher the priority, higher preference a rule gets. In following example, we add a default deny rule which uses default priority 1 and a allow web traffic rule which is at higher priority 10.
Rule add response is: {"key":"default:webTier:2","action":"accept","direction":"in","policyName":"webTier","port":80,"priority":10,"protocol":"tcp","ruleId":"2","tenantName":"default","link-sets":{"Policies":{"default:webTier":{"type":"policy","key":"default:webTier"}}}}
165
166
```
166
167
167
-
Following lists all the rules under 'webTier' policy
168
+
Following lists all the rules under `webTier` policy
168
169
169
170
```
170
171
vagrant@netplugin-node1:~$ contivctl rule list webTier
0 commit comments