summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/proxy-arp.yang
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/api/src/main/yang/proxy-arp.yang')
-rw-r--r--v3po/api/src/main/yang/proxy-arp.yang47
1 files changed, 47 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/proxy-arp.yang b/v3po/api/src/main/yang/proxy-arp.yang
new file mode 100644
index 000000000..9629678e1
--- /dev/null
+++ b/v3po/api/src/main/yang/proxy-arp.yang
@@ -0,0 +1,47 @@
+module proxy-arp {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:vpp:proxy:arp";
+ prefix "proxy-arp";
+
+ revision "2017-03-15" {
+ description "Initial revision of proxy ARP model for VPP";
+ }
+
+ import ietf-inet-types {
+ prefix "inet";
+ }
+ import ietf-interfaces {
+ prefix "if";
+ }
+ import yang-ext {
+ prefix "ext";
+ }
+
+ container proxy-ranges {
+ list proxy-range {
+ key "vrf-id low-addr high-addr";
+ leaf vrf-id {
+ type uint32;
+ }
+ leaf low-addr {
+ type inet:ipv4-address;
+ }
+ leaf high-addr {
+ type inet:ipv4-address;
+ }
+ description
+ "Parameters for configuring Proxy ARP on interfaces.";
+ }
+ }
+
+ augment /if:interfaces/if:interface {
+ ext:augment-identifier "proxy-arp-interface-augmentation";
+
+ container proxy-arp {
+ presence "Enables proxy ARP on given interface";
+ }
+ }
+
+ // TODO(HC2VPP-86): add interfaces-state augmentation once VPP supports ARP proxy read (VPP-225)
+ // TODO(HC2VPP-7): move to interfaces/ip plugin
+} \ No newline at end of file