summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-12-09 08:46:55 +0100
committerJan Srnicek <jsrnicek@cisco.com>2016-12-09 09:04:23 +0000
commite05955468e015e10c36635b758a35f11613e96c9 (patch)
tree803bb41706c06b79ede3397faccb6bc54f0caa54 /v3po/api/src/main/yang
parent486cef9607ec67105f62275799a9f50bae4b9b96 (diff)
HONEYCOMB-127: add routing operational read
Change-Id: I52cdeb6a35e04e8626992a027ad230b9b15fce96 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang')
-rw-r--r--v3po/api/src/main/yang/v3po.yang25
1 files changed, 16 insertions, 9 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index f503afe2b..fff8293d5 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -271,6 +271,17 @@ module v3po {
}
}
+ grouping routing-base-attributes {
+ leaf ipv4-vrf-id {
+ type uint32;
+ }
+ leaf ipv6-vrf-id {
+ type uint32;
+ }
+ description
+ "Defines VRF tables used for ipv4 and ipv6 traffic";
+ }
+
grouping ethernet-state-attributes {
leaf manufacturer-description {
type string;
@@ -472,15 +483,7 @@ module v3po {
}
container routing {
- // TODO (HONEYCOMB-127): add routing info for oper
- leaf ipv4-vrf-id {
- type uint32;
- }
- leaf ipv6-vrf-id {
- type uint32;
- }
- description
- "Defines VRF tables used for ipv4 and ipv6 traffic";
+ uses routing-base-attributes;
}
container vhost-user {
@@ -578,6 +581,10 @@ module v3po {
uses ethernet-state-attributes;
}
+ container routing {
+ uses routing-base-attributes;
+ }
+
container vhost-user {
when "../if:type = 'v3po:vhost-user'";
uses vhost-user-interface-base-attributes;