aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-02-27 16:32:25 -0500
committerMarco Platania <platania@research.att.com>2018-02-27 16:32:25 -0500
commit0766a3ace2df01e523d65e726fc3f7c0c00b4dc8 (patch)
treea78a9305e01b4dd0390867fc5b7fadaa42e1faaa /vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main
parent33621cb3587792e4d29bcebf5ff02d42ed50c8e2 (diff)
Add NETCONF/RESTconf APIs to vLB
Create a new directory for the vLB Manual Scale out use case (vLBMS). Add NETCONF/RESTconf APIs for configuring the vLB via ONAP. Change-Id: I06c557143d3a6d12159fc3195991cd8d49432348 Issue-ID: INT-432 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main')
-rw-r--r--vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main/yang/vlb-business-vnf-onap-plugin.yang66
1 files changed, 66 insertions, 0 deletions
diff --git a/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main/yang/vlb-business-vnf-onap-plugin.yang b/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main/yang/vlb-business-vnf-onap-plugin.yang
new file mode 100644
index 00000000..229ad7a3
--- /dev/null
+++ b/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin-api/src/main/yang/vlb-business-vnf-onap-plugin.yang
@@ -0,0 +1,66 @@
+module vlb-business-vnf-onap-plugin {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:vlb-business-vnf-onap-plugin";
+ prefix "vlb-business-vnf-onap-plugin";
+
+ description
+ "This YANG module defines the generic configuration and
+ operational data for vlb-business-vnf-onap-plugin in VPP";
+
+ revision "2016-09-18" {
+ description "Initial revision of vlb-business-vnf-onap-plugin model";
+ }
+
+ container vlb-business-vnf-onap-plugin {
+ uses vlb-business-vnf-onap-plugin-params;
+ description "Configuration data of vlb-business-vnf-onap-plugin in Honeycomb";
+
+ // READ
+ // curl -u admin:admin http://localhost:8181/restconf/config/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin
+
+ // WRITE
+ // curl http://localhost:8181/restconf/operational/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin
+
+ }
+
+ container vlb-business-vnf-onap-plugin-state {
+ config false;
+ uses vlb-business-vnf-onap-plugin-params;
+ description "Operational data of vlb-business-vnf-onap-plugin persisted in VPP";
+
+ // READ
+ // curl -u admin:admin http://localhost:8181/restconf/operational/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin-state
+ }
+
+// grouping vlb-business-vnf-onap-plugin-params {
+// list element {
+//
+// key id;
+// leaf id {
+// type uint32;
+// }
+//
+// leaf description {
+// type string;
+// }
+// }
+// }
+
+
+ grouping vlb-business-vnf-onap-plugin-params {
+ container vdns-instances {
+ list vdns-instance {
+
+ key ip-addr;
+ leaf ip-addr {
+ type string;
+ }
+
+ leaf is-enabled {
+ type boolean;
+ }
+ }
+ }
+ }
+}