From f782c704854eac8cb5ffe04ed4addfeae5b2bdfe Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 2 Mar 2017 13:40:22 +0100 Subject: 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 --- dhcp/dhcp-api/src/main/yang/dhcp.yang | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'dhcp/dhcp-api/src/main') 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; -- cgit 1.2.3-korg