summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/v3po.yang
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-03-14 09:29:12 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-03-14 14:33:40 +0100
commit5ec31f19f7a74a884e2bef8e5238fdd4cfa2c4c2 (patch)
tree53a3542d6ea26cb9d6f4ab5d827a12b2d9543db9 /v3po/api/src/main/yang/v3po.yang
parent4616f0300655582153362a21910bd1f0b14937ae (diff)
HC2VPP-7 - Split vpp state/Cli RPC to separate module
Introduces VppManageModule containing - Vpp state attributes - CLI RPC support - Keep-alive Change-Id: I8907e57132cc9e57840aa3b9607fa131a77f767d Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang/v3po.yang')
-rw-r--r--v3po/api/src/main/yang/v3po.yang71
1 files changed, 12 insertions, 59 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index f5f6b3293..e9df2f933 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -39,7 +39,7 @@ module v3po {
typedef bridge-domain-ref {
type leafref {
- path "/vpp/bridge-domains/bridge-domain/name";
+ path "/bridge-domains/bridge-domain/name";
}
description
"This type is used by to reference a bridge domain table";
@@ -585,24 +585,19 @@ module v3po {
}
}
- container vpp {
- description
- "VPP config data";
+ container bridge-domains {
+ list bridge-domain {
+ key "name";
- container bridge-domains {
- list bridge-domain {
- key "name";
+ leaf name {
+ type string;
+ }
- leaf name {
- type string;
- }
+ uses bridge-domain-attributes;
+ uses l2-fib-attributes;
- uses bridge-domain-attributes;
- uses l2-fib-attributes;
-
- description
- "bridge-domain configuration";
- }
+ description
+ "bridge-domain configuration";
}
}
@@ -675,13 +670,7 @@ module v3po {
}
}
- container vpp-state {
- config false;
-
- description
- "VPP operational data";
-
- container bridge-domains {
+ container bridge-domains-state {
// FIXME: Should this live in bridge-domain.yang in a modular fashion ?
list bridge-domain {
@@ -696,29 +685,6 @@ module v3po {
description
"bridge-domain operational data";
}
- }
-
- container version {
- leaf name {
- type string;
- }
- leaf build-directory {
- type string;
- }
- leaf build-date {
- type string;
- }
- leaf branch {
- type string;
- }
- leaf pid {
- type uint32;
- description
- "PID of the vpp process";
- }
- description
- "vlib version info";
- }
}
// VPP Notifications
@@ -760,17 +726,4 @@ module v3po {
type interface-name-or-index;
}
}
-
- rpc cli-inband {
- input {
- leaf cmd {
- type string;
- }
- }
- output {
- leaf reply {
- type string;
- }
- }
- }
}