summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/api/src/main/yang')
-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;
}