-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: yang defination for ietf:interfaces, vrf, ietf-routing
Yang files for ietf:interfaces, vrf, ietf-routing used by other daemons like staticd and pim Signed-off-by: vishaldhingra vdhingra@vmware.com Signed-off-by: Santosh P K sapk@vmware.com
- Loading branch information
1 parent
7d75ef8
commit 6b3bd6f
Showing
3 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
module frr-routing { | ||
yang-version "1.1"; | ||
namespace "http://frrouting.org/yang/routing"; | ||
prefix "rt"; | ||
|
||
import ietf-yang-types { | ||
prefix "yang"; | ||
} | ||
|
||
import frr-vrf { | ||
prefix frr-vrf; | ||
} | ||
|
||
organization | ||
"Free Range Routing"; | ||
|
||
contact | ||
"FRR Users List: <mailto:frog@lists.frrouting.org> | ||
FRR Development List: <mailto:dev@lists.frrouting.org>"; | ||
|
||
description | ||
"This YANG module defines essential components for the management | ||
of a routing subsystem."; | ||
|
||
revision 2019-08-15 { | ||
description | ||
"Initial revision."; | ||
} | ||
|
||
/* Identities */ | ||
|
||
identity address-family { | ||
description | ||
"Base identity from which identities describing address | ||
families are derived."; | ||
} | ||
|
||
identity ipv4 { | ||
base address-family; | ||
description | ||
"This identity represents an IPv4 address family."; | ||
} | ||
|
||
identity ipv6 { | ||
base address-family; | ||
description | ||
"This identity represents an IPv6 address family."; | ||
} | ||
|
||
identity control-plane-protocol { | ||
description | ||
"Base identity from which control-plane protocol identities are | ||
derived."; | ||
} | ||
|
||
identity routing-protocol { | ||
base control-plane-protocol; | ||
description | ||
"Identity from which Layer 3 routing protocol identities are | ||
derived."; | ||
} | ||
|
||
identity direct { | ||
base routing-protocol; | ||
description | ||
"Routing pseudo-protocol that provides routes to directly | ||
connected networks."; | ||
} | ||
|
||
identity static { | ||
base routing-protocol; | ||
description | ||
"'Static' routing pseudo-protocol."; | ||
} | ||
|
||
/* Type Definitions */ | ||
|
||
typedef route-preference { | ||
type uint32; | ||
description | ||
"This type is used for route preferences."; | ||
} | ||
|
||
/* Groupings */ | ||
|
||
grouping address-family { | ||
description | ||
"This grouping provides a leaf identifying an address | ||
family."; | ||
leaf address-family { | ||
type identityref { | ||
base address-family; | ||
} | ||
mandatory true; | ||
description | ||
"Address family."; | ||
} | ||
} | ||
|
||
grouping router-id { | ||
description | ||
"This grouping provides a router ID."; | ||
leaf router-id { | ||
type yang:dotted-quad; | ||
description | ||
"A 32-bit number in the form of a dotted quad that is used by | ||
some routing protocols identifying a router."; | ||
reference | ||
"RFC 2328: OSPF Version 2"; | ||
} | ||
} | ||
|
||
/* Data nodes */ | ||
|
||
container routing { | ||
description | ||
"Configuration parameters for the routing subsystem."; | ||
container control-plane-protocols { | ||
description | ||
"Support for control-plane protocol instances."; | ||
list control-plane-protocol { | ||
key "type name vrf"; | ||
description | ||
"Each entry contains a control-plane protocol instance."; | ||
leaf type { | ||
type identityref { | ||
base control-plane-protocol; | ||
} | ||
description | ||
"Type of the control-plane protocol -- an identity | ||
derived from the 'control-plane-protocol' | ||
base identity."; | ||
} | ||
leaf name { | ||
type string; | ||
description | ||
"An arbitrary name of the control-plane protocol | ||
instance."; | ||
} | ||
leaf vrf { | ||
type frr-vrf:vrf-ref; | ||
description | ||
"routing instance"; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters