Mapping tap port to vpp 43/41143/13
authorTomas Cechvala <tcechval@cisco.com>
Thu, 30 Jun 2016 14:19:37 +0000 (16:19 +0200)
committerTomas Cechvala <tcechval@cisco.com>
Mon, 18 Jul 2016 09:05:47 +0000 (09:05 +0000)
Updated vpp-renderer yang

Change-Id: Idf9ca688b933908dad419f35b885a97a052410b0
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
renderers/vpp/src/main/yang/vpp-renderer.yang

index 81f2f45346113fa70182e528a9eaf227411c3922..46f3c5a50170258be2d1ca5fe4f7347ed51413c0 100644 (file)
@@ -15,6 +15,7 @@ module vpp-renderer {
     import base-endpoint { prefix base-ep; revision-date 2016-04-27; }
     import network-topology { prefix nt; revision-date 2013-10-21; }
     import opendaylight-l2-types { prefix l2-types; revision-date "2013-08-27"; }
+    import ietf-yang-types { prefix yang-types; revision-date "2013-07-15"; }
 
     description
         "This module is a baseline for the group-based policy vpp renderer model.";
@@ -54,10 +55,12 @@ module vpp-renderer {
 
             leaf vpp-node-path {
                 description "Path to a node representing mount-point to VPP instance.";
+                mandatory true;
                 type instance-identifier;
             }
             leaf vpp-interface-name {
                 description "Name of interface for the endpoint on VPP";
+                mandatory true;
                 type string;
             }
             leaf description {
@@ -67,11 +70,24 @@ module vpp-renderer {
             choice interface-type-choice {
                 case vhost-user-case {
                     leaf socket {
-                        description "A unique ID for the neutron port";
+                        description "Identifier of a vhost user";
+                        type string {
+                            length 1..255;
+                        }
+                    }
+                }
+                case tap-case {
+                    leaf name {
+                        description "Identifier of a tap port";
+                        mandatory true;
                         type string {
                             length 1..255;
                         }
                     }
+                    leaf physical-address {
+                        description "MAC address of a tap port";
+                        type yang-types:phys-address;
+                    }
                 }
             }
         }