X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=model%2Fsrc%2Fmain%2Fyang%2Fneutron-ports.yang;fp=model%2Fsrc%2Fmain%2Fyang%2Fneutron-ports.yang;h=429eca3e9194a4ca6c1b8614a90a92191317e4fd;hb=1bcc4da2f969524ab8dfaab891cd32b2726120b3;hp=4f8a6536553abd81d9a7cbcc05f09ef6f161cd7b;hpb=eb4df4c710cf939744da36ba5bf19d952338f9a7;p=neutron.git diff --git a/model/src/main/yang/neutron-ports.yang b/model/src/main/yang/neutron-ports.yang index 4f8a65365..429eca3e9 100644 --- a/model/src/main/yang/neutron-ports.yang +++ b/model/src/main/yang/neutron-ports.yang @@ -18,6 +18,7 @@ module neutron-ports { import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; } import neutron-attrs { prefix "attrs"; } import neutron-constants { prefix "constants"; } + import neutron-types { prefix "types"; } organization "OpenDaylight Neutron Group"; @@ -40,10 +41,10 @@ module neutron-ports { is already allowed to pass through the port"; key "mac-address ip-address"; leaf mac-address { - type string; + type yang:mac-address; } leaf ip-address { - type string; + type types:ip-prefix-or-address; } } @@ -70,14 +71,10 @@ module neutron-ports { type string; } leaf mac-address { - type string; + type yang:mac-address; } - leaf binding-profile { - type string; - } - list fixed-ips { - key subnet-id; + key "subnet-id ip-address"; leaf subnet-id { type yang:uuid; }