Skip to content

Commit 572dd4d

Browse files
authored
Merge pull request #55 from xcp-ng/dml-traffic-rules-fixing
Rework traffic-rules
2 parents 1cd759c + d2d1399 commit 572dd4d

File tree

5 files changed

+1071
-688
lines changed

5 files changed

+1071
-688
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ Parameters for adding a rule:
350350
- *priority* (optional): A number between 0 and 65535 for the rule priority.
351351
- *mac* (optional): The MAC address of the VIF to create the rule for, if not
352352
specified, a network-wide rule will be created.
353-
- *iprange*: An IP or range of IPs in CIDR notation, for example `192.168.1.0/24`.
353+
- *ipRange*: An IP or range of IPs in CIDR notation, for example `192.168.1.0/24`.
354354
- *direction*: can be **from**, **to** or **from/to**
355-
- *to*: means the parameters for **port** and **iprange** are to be used as destination
355+
- *to*: means the parameters for **port** and **ipRange** are to be used as destination
356356
- *from*: means they will be use as source
357357
- *from/to*: 2 rules will be created, one per direction
358358
- *protocol*: IP, TCP, UDP, ICMP or ARP
@@ -365,7 +365,7 @@ $ xe host-call-plugin host-uuid<uuid> plugin=sdncontroller.py \
365365
args:bridge="xenbr0" \
366366
args:priority="100" \
367367
args:mac="6e:0b:9e:72:ab:c6" \
368-
args:iprange="192.168.1.0/24" \
368+
args:ipRange="192.168.1.0/24" \
369369
args:direction="from/to" \
370370
args:protocol="tcp" \
371371
args:port="22" \
@@ -377,9 +377,9 @@ $ xe host-call-plugin host-uuid<uuid> plugin=sdncontroller.py \
377377
Parameters for removing a rule:
378378
- *bridge* : The name of the bridge to delete the rule from.
379379
- *mac* (optional): The MAC address of the VIF to delete the rule for.
380-
- *iprange*: An IP or range of IPs in CIDR notation, for example `192.168.1.0/24`.
380+
- *ipRange*: An IP or range of IPs in CIDR notation, for example `192.168.1.0/24`.
381381
- *direction*: can be **from**, **to** or **from/to**
382-
- *to*: means the parameters for **port** and **iprange** are to be used as destination
382+
- *to*: means the parameters for **port** and **ipRange** are to be used as destination
383383
- *from*: means they will be use as source
384384
- *from/to*: 2 rules will be created, one per direction
385385
- *protocol*: IP, TCP, UDP, ICMP or ARP
@@ -390,7 +390,7 @@ $ xe host-call-plugin host-uuid<uuid> plugin=sdncontroller.py \
390390
fn=del-rule \
391391
args:bridge="xenbr0" \
392392
args:mac="6e:0b:9e:72:ab:c6" \
393-
args:iprange="192.168.1.0/24" \
393+
args:ipRange="192.168.1.0/24" \
394394
args:direction="from/to" \
395395
args:protocol="tcp" \
396396
args:port="22"

0 commit comments

Comments
 (0)