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
Copy file name to clipboardExpand all lines: articles/operator-nexus/how-to-ip-prefixes.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ To create an IP Prefix resource, follow these steps:
54
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.
55
55
56
56
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.
57
+
- `networkPrefix`: The network segment to match. It's an IP address and a prefix length, such as 10.10.10.0/28 or 2001:db8::/64.
58
58
59
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.
60
60
61
61
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.
62
+
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.
63
63
64
64
3. Verify that the IP Prefix resource is created successfully. You can use the `az networkfabric ipprefix show` command to show the details of the IP Prefix resource. You can use the following example as a reference:
65
65
@@ -71,7 +71,7 @@ To create an IP Prefix resource, follow these steps:
71
71
72
72
In this example, `myResourceGroup` is the name of the resource group where you created the IP Prefix resource, and `myIpPrefix` is the name of the IP Prefix resource.
73
73
74
-
The response should contain the properties and rules of the IP Prefix resource, such as the id, type, ipPrefixRules, location, name, provisioningState, resourceGroup, and tags.
74
+
The response should contain the properties and rules of the IP Prefix resource, such as the ID, type, ipPrefixRules, location, name, provisioningState, resourceGroup, and tags.
75
75
76
76
### Show an IP Prefix resource
77
77
@@ -127,5 +127,21 @@ To update an IP Prefix resource, follow these steps:
127
127
128
128
In this example, `resourceGroupName` is the name of the resource group where you created the IP Prefix resource, `ipPrefixName` is the name of the IP Prefix resource, and the `--add` option adds a new rule to the ipPrefixRules property. The new rule denies routes with network prefix 30.30.30.0/24 and has a sequence number of 30.
129
129
130
+
## Deleting an IP Prefix resource
130
131
132
+
To delete an existing IP Prefix resource by its ID or name, use the following command:
131
133
134
+
```azurecli
135
+
# Delete an IP Prefix resource by its name
136
+
az networkfabric ipprefix delete \
137
+
--resource-group myResourceGroup \
138
+
--name myIpPrefix
139
+
```
140
+
141
+
The REST API request body for deleting an IP Prefix resource by its ID is as follows:
0 commit comments