summaryrefslogtreecommitdiffstats
path: root/v3po/api/src
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-01-02 15:38:44 +0100
committerMarek Gradzki <mgradzki@cisco.com>2018-06-21 13:03:12 +0200
commitbf9cd1463cf5f23e6a2e8db891b13457315df272 (patch)
tree36736448afd3d2ead273c452cdb0953253caa227 /v3po/api/src
parent940956e1513837842a780152fc1db837afea1864 (diff)
HC2VPP-88: yang model for af_packet interface management
Change-Id: Iaa21ad832d03f36d7d8a6f63a68a6a7ece7c9b8d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src')
-rw-r--r--v3po/api/src/main/yang/v3po@2017-06-07.yang31
1 files changed, 31 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/v3po@2017-06-07.yang b/v3po/api/src/main/yang/v3po@2017-06-07.yang
index 6a1eb3809..3d669e0a0 100644
--- a/v3po/api/src/main/yang/v3po@2017-06-07.yang
+++ b/v3po/api/src/main/yang/v3po@2017-06-07.yang
@@ -149,6 +149,10 @@ module v3po {
base if:interface-type;
}
+ identity af-packet {
+ base if:interface-type;
+ }
+
typedef vxlan-gpe-vni {
description "VNI used in a VXLAN-GPE tunnel";
type uint32 {
@@ -493,6 +497,23 @@ module v3po {
}
}
+ grouping af-packet-base-attributes {
+ leaf host-interface-name {
+ type string {
+ length "1..63";
+ }
+ /* mandatory true; */
+ description "Name of the host interface (veth end point).";
+ }
+ leaf mac {
+ type yang:phys-address;
+ mandatory false;
+ description "Mac address to be set for the af-packet interface. Random will be used if not configured.";
+ }
+ reference
+ "https://docs.fd.io/vpp/18.07/clicmd_src_vnet_devices_af_packet.html";
+ }
+
grouping l2-config-attributes {
description
"Parameters for configuring Layer2 features on interfaces.";
@@ -658,6 +679,11 @@ module v3po {
uses vxlan-gpe-base-attributes;
}
+ container af-packet {
+ when "../if:type = 'v3po:af-packet'";
+ uses af-packet-base-attributes;
+ }
+
container span {
uses span-attributes;
}
@@ -731,6 +757,11 @@ module v3po {
uses l2-state-attributes;
}
+ container af-packet {
+ when "../if:type = 'v3po:af-packet'";
+ uses af-packet-base-attributes;
+ }
+
container span {
uses span-state-attributes;
}