- grouping adjacency-list{
- list adjacency{
- key "ip_address";
- leaf-list next-hop-ip-list { type string; }
- leaf ip_address {type string;}
- leaf adjacency_type {
- description "The type of adjacency";
- type enumeration {
- enum "primary-adjacency" {
- value 1;
- description
- "Primary adjacency type.";
- }
- enum "learnt-ip" {
- value 2;
- description
- "Learnt ip adjacency type.";
- }
- enum "extra-route" {
- value 3;
- description
- "Extra route adjacency type.";
- }
- }
- default "extra-route";
- }
- leaf mac_address {type string;} /* optional */
- leaf subnet_id {type yang:uuid;} /* optional */
- leaf subnet_gateway_ip {type string;} /* optional */
- leaf phys-network-func {
- type boolean;
- default false;
- description "Value of True indicates this is an adjacency of a device in a provider network";
- }
- uses adjacency-op-data;
- }
- }
-
- grouping adjacency-op-data{
- leaf label { type uint32; config "false"; } /* optional */
- leaf subnet_gateway_mac_address {type string; config "false";} /* optional */
- leaf vrf-id { type string; config "false"; }
- leaf marked_for_deletion {
- config "false";
- type boolean;
- description "This flag if true suggest this adjancency has been marked for deletion";
- }
- }
-