summaryrefslogtreecommitdiffstats
path: root/dhcp/dhcp-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp/dhcp-api/src/main')
-rw-r--r--dhcp/dhcp-api/src/main/yang/dhcp.yang20
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;