The following example demonstrates the use of wildcarding. The interface so-0/0/0 inherits data from the various SONET/SDH interface wildcard patterns in group one.
- [edit]
- user@host# show
- groups {
-
- one {
-
- interfaces {
-
- <so-*> {
-
- sonet-options {
- rfc-2615;
- }
- }
-
- <so-0/*> {
-
- sonet-options {
- fcs 32;
- }
- }
-
- <so-*/0/*> {
-
- sonet-options {
- fcs 16;
- }
- }
-
- <so-*/*/0> {
-
- sonet-options {
- payload-scrambler;
- }
- }
- }
- }
- }
- apply-groups one;
- interfaces {
-
- so-0/0/0 {
-
- unit 0 {
-
- family inet {
- address 10.0.0.1/8;
- }
- }
- }
- }
- [edit]
- user@host# show | display inheritance
- interfaces {
-
- so-0/0/0 {
- ##
- ## ’sonet-options’ was inherited from group
’one’
- ##
-
- sonet-options {
- ##
- ## ’32’ was inherited from group ’one’
- ##
- fcs 32;
- ##
- ## ’payload-scrambler’ was inherited from group
’one’
- ##
- payload-scrambler;
- ##
- ## ’rfc-2615’ was inherited from group ’one’
- ##
- rfc-2615;
- }
-
- unit 0 {
-
- family inet {
- address 10.0.0.1/8;
- }
- }
- }
- }