Skip to content

Commit 54cbf41

Browse files
Correct formatting of codeblock and nested lists.
1 parent 0c1cbaf commit 54cbf41

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

articles/operator-nexus/how-to-ip-prefixes.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,42 @@ This article explains the main management operations for IP prefixes and IP pref
2121

2222
To create an IP Prefix resource, follow these steps: 
2323

24+
2425
1. Specify the properties and rules of the IP Prefix resource. You can use the following azcli command as a reference: 
2526

26-
```azurecli
27-
az networkfabric ipprefix create--resource-group myResourceGroup \
28-
--name myIpPrefix \
29-
--location eastus \
30-
--ip-prefix-rules action=Permit condition=EqualTo networkPrefix=10.10.10.0/28 sequenceNumber=10 \
31-
--ip-prefix-rules action=Permit condition=EqualTo networkPrefix=20.20.20.0/24 sequenceNumber=20
32-
```
27+
```azurecli
28+
az networkfabric ipprefix create--resource-group myResourceGroup \
29+
--name myIpPrefix \
30+
--location eastus \
31+
--ip-prefix-rules action=Permit condition=EqualTo networkPrefix=10.10.10.0/28 sequenceNumber=10 \
32+
--ip-prefix-rules action=Permit condition=EqualTo networkPrefix=20.20.20.0/24 sequenceNumber=20
33+
```
3334
3435
The properties and rules of the IP Prefix resource are: 
3536
36-
- resource-group: The name of the resource group where you want to create the IP Prefix resource. 
37+
- `resource-group`: The name of the resource group where you want to create the IP Prefix resource. 
3738
38-
- name: The name of the IP Prefix resource. 
39+
- `name`: The name of the IP Prefix resource. 
3940
40-
- location: The Azure region where you want to create the IP Prefix resource. 
41+
- `location`: The Azure region where you want to create the IP Prefix resource. 
4142
42-
- ip-prefix-rules: The list of rules that define the match criteria and action for the IP Prefix resource. Each rule has the following properties: 
43+
- `ip-prefix-rules`: The list of rules that define the match criteria and action for the IP Prefix resource. Each rule has the following properties: 
4344
4445
45-
- action: The action to take when the condition is met. It can be either Permit or Deny. Permit means to allow the route, and Deny means to reject the route. 
46+
- `action`: The action to take when the condition is met. It can be either Permit or Deny. Permit means to allow the route, and Deny means to reject the route. 
4647
47-
- condition: The condition to compare the network prefix of the route with the network prefix of the rule. It can be one of the following values: 
48+
- `condition`: The condition to compare the network prefix of the route with the network prefix of the rule. It can be one of the following values: 
4849
49-
- EqualTo: The condition is true when the network prefix of the route is equal to the network prefix of the rule. 
50+
- `EqualTo`: The condition is true when the network prefix of the route is equal to the network prefix of the rule. 
5051
51-
- NotEqualTo: The condition is true when the network prefix of the route is not equal to the network prefix of the rule. 
52+
- `NotEqualTo`: The condition is true when the network prefix of the route isn't equal to the network prefix of the rule. 
5253
53-
- GreaterThanOrEqualTo: The condition is true when the network prefix of the route is greater than or equal to the network prefix of the rule. This means that the route has a longer or equal prefix length than the rule. 
54+
- `GreaterThanOrEqualTo`: The condition is true when the network prefix of the route is greater than or equal to the network prefix of the rule.
5455
5556
56-
- networkPrefix: The network segment to match. It is specified as an IP address and a prefix length, such as 10.10.10.0/28 or 2001:db8::/64. 
57+
- `networkPrefix`: The network segment to match. It's specified as an IP address and a prefix length, such as 10.10.10.0/28 or 2001:db8::/64. 
5758
58-
- sequenceNumber: The order of evaluation of the rule, from lowest to highest. The rule with the lowest sequence number is evaluated first, and the rule with the highest sequence number is evaluated last. If a rule matches the route, the evaluation stops and the action of the rule is executed. If no rule matches the route, the default action is Deny. 
59+
- `sequenceNumber`: The order of evaluation of the rule, from lowest to highest. The rule with the lowest sequence number is evaluated first, and the rule with the highest sequence number is evaluated last. If a rule matches the route, the evaluation stops and the action of the rule is executed. If no rule matches the route, the default action is Deny. 
5960
6061
61-
2. Create the IP Prefix resource using the azcli command. You can use the same command as in the previous step, or modify it as per your requirements.
62+
1. Create the IP Prefix resource using the azcli command. You can use the same command as in the previous step, or modify it as per your requirements.

0 commit comments

Comments
 (0)