X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=interfacemgr%2Finterfacemgr-api%2Fsrc%2Fmain%2Fyang%2Fodl-interface.yang;h=9c226141b25b12b8fb7f5658b69287ac4d9608b9;hb=HEAD;hp=38405be01414d4a3b8b05e61692105f32f2f438a;hpb=b4b1b760287d5aa668c493b0a8f35e2ebae5ecd8;p=vpnservice.git diff --git a/interfacemgr/interfacemgr-api/src/main/yang/odl-interface.yang b/interfacemgr/interfacemgr-api/src/main/yang/odl-interface.yang index 38405be0..9c226141 100644 --- a/interfacemgr/interfacemgr-api/src/main/yang/odl-interface.yang +++ b/interfacemgr/interfacemgr-api/src/main/yang/odl-interface.yang @@ -17,6 +17,7 @@ module odl-interface { import ietf-inet-types { prefix inet; + revision-date "2013-07-15"; } import opendaylight-inventory { @@ -70,6 +71,11 @@ module odl-interface { base tunnel-type-base; } + identity tunnel-type-mpls-over-gre { + description "Tunnel type for mpls over gre tunnels"; + base tunnel-type-base; + } + /* base/common properties */ augment "/if:interfaces/if:interface" { status deprecated; @@ -91,6 +97,19 @@ module odl-interface { type string; description "can be a physical switch port or virtual switch port e.g. neutron port"; } + + list node-identifier { + key "topology-id"; + description "an identifier of the dependant underlying configuration protocol"; + leaf "topology-id" { + type string; + description "can be ovsdb configuration protocol"; + } + leaf "node-id" { + type string; + description "can be hwvtep configuration protocol"; + } + } } /* interface type specific properties */ @@ -137,6 +156,7 @@ module odl-interface { "The VLAN mode transparent."; } } + default "trunk"; } } @@ -155,6 +175,13 @@ module odl-interface { ext:augment-identifier "if-tunnel"; when "if:type = 'ianaift:tunnel'"; + leaf internal { + type boolean; + default "false"; + description + "represents whether this is an internal or external tunnel."; + } + leaf tunnel-interface-type { type identityref { base tunnel-type-base; @@ -175,6 +202,16 @@ module odl-interface { type inet:ip-address; description "gateway IP address"; } + + leaf monitor-enabled { + type boolean; + default false; + } + + leaf monitor-interval { + type uint32; + default 10000; + } } augment "/if:interfaces/if:interface" { @@ -203,6 +240,7 @@ module odl-interface { description "gateway IP address"; } } + /* MPLS logical port */ augment "/if:interfaces/if:interface" { ext:augment-identifier "if-mpls"; @@ -218,4 +256,4 @@ module odl-interface { } } } -} \ No newline at end of file +}