Skip to content

Instantly share code, notes, and snippets.

@rwestphal
Created April 1, 2018 17:35
Show Gist options
  • Save rwestphal/2c411708e6002254610fc432965d5d1e to your computer and use it in GitHub Desktop.
Save rwestphal/2c411708e6002254610fc432965d5d1e to your computer and use it in GitHub Desktop.
module frr-interface {
yang-version 1;
namespace "http://frrouting.org/yang/interface";
prefix frr-interface;
organization
"Free Range Routing";
contact
"FRR Users List: <mailto:[email protected]>
FRR Development List: <mailto:[email protected]>";
description
"This module defines a model for managing FRR interfaces.";
revision 2018-03-28 {
description
"Initial revision.";
}
container lib {
list interface {
key "name vrf";
description
"Interface.";
leaf name {
type string {
length "1..16";
}
description
"Interface name.";
}
leaf vrf {
/* XXX: create a per-vrf list of interfaces? */
type string {
length "1..36";
}
description
"VRF this interface is associated with.";
}
leaf description {
type string;
description
"Interface description.";
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment