Prefix List
此内容尚不支持你的语言。
| URL | GET | POST | PATCH | PUT | DELETE |
|---|---|---|---|---|---|
| /rest/v1/running/prefix-lists/{name} | Y | Y | Y | N | Y |
| /rest/v1/running/prefix-lists/{name}/entries/{sequence-id} | Y | Y | Y | N | Y |
| /rest/v1/rpc/show-ip-prefix-list-summary-json | N | Y | N | N | N |
| /rest/v1/rpc/show-ipv6-prefix-list-summary-json | N | Y | N | N | N |
Examples
Section titled “Examples”Create a prefix list.
Section titled “Create a prefix list.”POST HTTPS://{switch IP}/rest/v1/running/prefix-lists{ "name": "test", "type": "IPv4", "description": "test_ipv4_prefix_list"}Create prefix list entries.
Section titled “Create prefix list entries.”POST HTTPS://{switch IP}/rest/v1/running/prefix-lists/test/entries[{ "sequence-id": "11", "action": "deny"},{ "sequence-id": "12", "action": "deny", "ipv4-prefix": "10.0.1.0/24", "min-ipv4-prefix-length": "25", "max-ipv4-prefix-length": "26"},{ "sequence-id": "13", "action": "permit", "ipv4-prefix": "10.0.2.0/24", "min-ipv4-prefix-length": "25"},{ "sequence-id": "14", "action": "deny", "ipv4-prefix": "10.0.3.0/24", "max-ipv4-prefix-length": "30"},{ "sequence-id": "15", "action": "deny", "ipv4-prefix": "10.0.4.0/24"}]Show IPv4 prefix list
Section titled “Show IPv4 prefix list”POST HTTPS://{switch IP}/rest/v1/rpc/show-ip-prefix-list-summaryShow IPv6 prefix list
Section titled “Show IPv6 prefix list”POST HTTPS://{switch IP}/rest/v1/rpc/show-ipv6-prefix-list-summaryProperties Descriptions
Section titled “Properties Descriptions”Prefix lists and entries
Section titled “Prefix lists and entries”Tree Diagrams
+--rw prefix-lists +--rw prefix-list* [name] +--rw name +--rw type +--rw description? +--rw entries +--rw entry* [sequence-id] +--rw sequence-id +--rw action +--rw (value)? +--:(ipv4-prefix) | +--rw ipv4-prefix | +--rw min-ipv4-prefix-length? | +--rw max-ipv4-prefix-length? +--:(ipv6-prefix) +--rw ipv6-prefix +--rw min-ipv6-prefix-length? +--rw max-ipv6-prefix-length?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| prefix-lists | M | Path-only node, has no configurable value. | |
| name | M | prefix-list-name | (sub-property of prefix-lists) |
| Prefix list name | |||
| type | M | ”IPv4" | |
| "IPv6” | (sub-property of prefix-lists) | ||
| Prefix list type | |||
| description | O | string | (sub-property of prefix-lists) |
| Prefix list user description | |||
| entries | M | (sub-property of prefix-lists) | |
| Path-only node, has no configurable value. | |||
| sequence-id | M | 1..4294967295 | (sub-property of entries) |
| Prefix list sequence value | |||
| action | M | ”deny" | |
| "permit” | (sub-property of entries) | ||
| Prefix list action on match | |||
| ipv4-prefix | M | A.B.C.D/M | (sub-property of entries) |
| Mutually exclusive with: |
- ipv6-prefix
- min-ipv6-prefix-length
- max-ipv6-prefix-length Configure IPv4 prefix to match | | min-ipv4-prefix-length | O | 0..32 | (sub-property of entries) Mutually exclusive with:
- ipv6-prefix
- min-ipv6-prefix-length
- max-ipv6-prefix-length Specifies if matching prefixes with length greater than or equal to value | | max-ipv4-prefix-length | O | 0..32 | (sub-property of entries) Mutually exclusive with:
- ipv6-prefix
- min-ipv6-prefix-length
- max-ipv6-prefix-length Specifies if matching prefixes with length lesser than or equal to value | | ipv6-prefix | M | XX:XX:XX:XX:XX:XX:XX:XX/M | (sub-property of entries) Mutually exclusive with:
- ipv4-prefix
- min-ipv4-prefix-length
- max-ipv4-prefix-length Configure IPv6 prefix to match | | min-ipv6-prefix-length | O | 0..128 | (sub-property of entries) Mutually exclusive with:
- ipv4-prefix
- min-ipv4-prefix-length
- max-ipv4-prefix-length Specifies if matching prefixes with length greater than or equal to value | | max-ipv6-prefix-length | O | 0..128 | (sub-property of entries) Mutually exclusive with:
- ipv4-prefix
- min-ipv4-prefix-length
- max-ipv4-prefix-length Specifies if matching prefixes with length lesser than or equal to value |
Show IPv4 prefix list
Section titled “Show IPv4 prefix list”Tree Diagrams
+---x show-ip-prefix-list-summary-json | +---w input | | +---w name? | | +---w sequence-id? | +--ro output | +--ro data?Table of Properties
| Name | Required | Type/Range | Description | |
|---|---|---|---|---|
| show-ip-prefix-list-summary-json | M | Path-only node, has no configurable value. | ||
| name | O | string | (sub-property of input) | |
| Name of a prefix list. | ||||
| sequence-id | O | 1..4294967295 | (sub-property of input) | |
| Prefix list sequence value | ||||
| data | RO | (sub-property of output) |
Show IPv6 prefix list
Section titled “Show IPv6 prefix list”Tree Diagrams
+---x show-ipv6-prefix-list-summary-json +---w input | +---w name? | +---w sequence-id? +--ro output +--ro data?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-prefix-list-summary-json | M | Path-only node, has no configurable value. | |
| name | O | string | (sub-property of input) |
| Name of a prefix list. | |||
| sequence-id | O | 1..4294967295 | (sub-property of input) |
| Prefix list sequence value | |||
| data | RO | (sub-property of output) |