2019-12-06 05:47:01 +01:00
|
|
|
module frr-vrf {
|
|
|
|
yang-version 1.1;
|
|
|
|
namespace "http://frrouting.org/yang/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 module defines a model for managing FRR VRF.";
|
|
|
|
|
|
|
|
revision 2019-12-06 {
|
|
|
|
description
|
|
|
|
"Initial revision.";
|
|
|
|
}
|
|
|
|
|
2020-03-11 02:20:49 +01:00
|
|
|
typedef vrf-ref {
|
|
|
|
type leafref {
|
|
|
|
path "/frr-vrf:lib/frr-vrf:vrf/frr-vrf:name";
|
|
|
|
require-instance false;
|
|
|
|
}
|
|
|
|
description
|
|
|
|
"Reference to a VRF";
|
2019-12-06 05:47:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
container lib {
|
|
|
|
list vrf {
|
|
|
|
key "name";
|
|
|
|
description
|
|
|
|
"VRF.";
|
|
|
|
leaf name {
|
|
|
|
type string {
|
|
|
|
length "1..36";
|
|
|
|
}
|
|
|
|
description
|
|
|
|
"VRF name.";
|
|
|
|
}
|
|
|
|
|
2020-03-11 02:20:49 +01:00
|
|
|
container state {
|
2019-12-06 05:47:01 +01:00
|
|
|
config false;
|
2020-03-11 02:20:49 +01:00
|
|
|
leaf id {
|
|
|
|
type uint32 {
|
|
|
|
range "0..4294967295";
|
|
|
|
}
|
|
|
|
description
|
|
|
|
"VRF Id.";
|
|
|
|
}
|
2019-12-06 05:47:01 +01:00
|
|
|
|
2020-03-11 02:20:49 +01:00
|
|
|
leaf active {
|
|
|
|
type boolean;
|
|
|
|
default "false";
|
2019-12-06 05:47:01 +01:00
|
|
|
description
|
2020-03-11 02:20:49 +01:00
|
|
|
"VRF active in kernel.";
|
2019-12-06 05:47:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|