ip prefix-group
Use this command to create an entry for an IPv4 prefix group.
A dynamic and static prefix-group with a set of IPv4 prefixes can be created. No actions or other attributes associated with the prefix-group can be defined.
The match-xpath entry can be used for dynamic configuration. An Xpath can be configured by pointing to a valid XPath on OcNOS, and a set of prefixes related to this path will be added to the prefix group.
Command Syntax
ip prefix-group WORD
description LINE
A.B.C.D/M
match-xpath WORD
no description
no A.B.C.D/M
no match-xpath
no ip prefix-group WORD
Parameters
WORD
Name of the prefix group (Maximum length 64)
LINE
Description for the prefix group (Maximum length 80)
A.B.C.D/M
IPv4 address type
WORD
X-path expressions pointing to a set of prefixes
Default
None
Command Mode
Configure mode and IPv4 prefix group mode.
Applicability
Introduced in OcNOS version 6.6.1
Examples
OcNOS(config)#ip prefix-group mygroup
OcNOS(config-ip-prefix-group)#1.1.1.1/24
OcNOS(config-ip-prefix-group)#commit
OcNOS(config-ip-prefix-group)#exit
OcNOS(config)#
OcNOS(config)#ip prefix-group ge
OcNOS(config-ip-prefix-group)#match-xpath interfaces/interface/name=ge*/ipv4/config/primary-ip-addr=*
OcNOS(config-ip-prefix-group)#commit