diff options
author | 2017-03-02 13:40:22 +0100 | |
---|---|---|
committer | 2017-03-08 09:34:41 +0100 | |
commit | f782c704854eac8cb5ffe04ed4addfeae5b2bdfe (patch) | |
tree | db7968af76c072cc48edf25c972c982017ac0cf8 /dhcp/dhcp-api/src/main/yang | |
parent | 7a583394d0e81993e31c830a9d22f3ebb2a6de3e (diff) |
HC2VPP-43: support for multiple DHCP servers for relay
Depends on https://gerrit.fd.io/r/#/c/5515/
Change-Id: I76d1b37b9d9e866fc97f3cc35c1ac01e48b0ab57
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'dhcp/dhcp-api/src/main/yang')
-rw-r--r-- | dhcp/dhcp-api/src/main/yang/dhcp.yang | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/dhcp/dhcp-api/src/main/yang/dhcp.yang b/dhcp/dhcp-api/src/main/yang/dhcp.yang index 9f2e64467..4fa0a61f8 100644 --- a/dhcp/dhcp-api/src/main/yang/dhcp.yang +++ b/dhcp/dhcp-api/src/main/yang/dhcp.yang @@ -42,19 +42,21 @@ module dhcp { } grouping relay-attributes { - leaf server-address { - // FIXME(HC2VPP-79): change to ip-address-no-zone after https://bugs.opendaylight.org/show_bug.cgi?id=6413 is resolved - type inet:ip-address; - mandatory true; + list server { + key "vrf-id address"; + leaf address { + // FIXME(HC2VPP-79): change to ip-address-no-zone after https://bugs.opendaylight.org/show_bug.cgi?id=6413 is resolved + type inet:ip-address; description - "IP address of the server DHCP packets will be forwarded to."; - } - leaf server-vrf-id { + "IP address of the server DHCP packets will be forwarded to."; + } + leaf vrf-id { type uint32; - default 0; description - "Used to send DHCP messages to the server"; + "Used to send DHCP messages to the server"; + } } + leaf gateway-address { // FIXME(HC2VPP-79): change to ip-address-no-zone after https://bugs.opendaylight.org/show_bug.cgi?id=6413 is resolved type inet:ip-address; |