This YANG module provides a Netgate-defined data-model for DHCP data.
Copyright 2024 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:dhcp-relay-config": {
- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
}
Configuration data of DHCP relay.
netgate.dhcp.relay.DhcpRelayConfig to be added to list
Array of objects (netgate.dhcp.relay.dhcprelayconfig.RelayList) List of configuration |
{- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
Configuration data of DHCP relay.
netgate.dhcp.relay.DhcpRelayConfig to be added or updated
object (netgate.dhcp.relay.DhcpRelayConfig) Configuration data of DHCP relay. |
{- "netgate-dhcp-relay:dhcp-relay-config": {
- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
List of configuration
netgate.dhcp.relay.dhcprelayconfig.RelayList to be added to list
netgate-dhcp-relay:description | string Brief description of the DHCP Relay. |
object (netgate.dhcp.relay.dhcprelayconfig.relaylist.Servers) IPv4 and IPv6 DHCP servers for the source VRF. | |
netgate-dhcp-relay:source-ipv4-address | string The IPv4 source address used when forwarding DHCP packets. |
netgate-dhcp-relay:source-ipv6-address | string The IPv6 source address used when forwarding DHCPv6 packets. |
netgate-dhcp-relay:source-vrf | string Source VRF serviced by DHCP Relay |
{- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
List of configuration
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:relay-list": {
- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
}
List of configuration
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelayconfig.RelayList to be added or updated
object (netgate.dhcp.relay.dhcprelayconfig.RelayList) List of configuration |
{- "netgate-dhcp-relay:relay-list": {
- "netgate-dhcp-relay:description": "string",
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
}
List of configuration
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelayconfig.relaylist.Servers to be added to list
Array of objects (netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv4) DHCP relay server VRF table id and address | |
Array of objects (netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv6) DHCPv6 relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelayconfig.relaylist.Servers to be added or updated
object (netgate.dhcp.relay.dhcprelayconfig.relaylist.Servers) IPv4 and IPv6 DHCP servers for the source VRF. |
{- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
]
}
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv4 to be added to list
netgate-dhcp-relay:ip | string The IPv4 address of the DHCP server. |
netgate-dhcp-relay:vrf | string Default: "default" The VRF which the DHCP server can be reached on. |
{- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers/server-ipv4=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:server-ipv4": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv4 to be added or updated
object (netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv4) DHCP relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv4": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers/server-ipv4=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv6 to be added to list
netgate-dhcp-relay:ip | string The IPv6 address of the DHCPv6 server. |
netgate-dhcp-relay:vrf | string Default: "default" The VRF which the DHCPv6 server can be reached on. |
{- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers/server-ipv6=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:server-ipv6": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv6 to be added or updated
object (netgate.dhcp.relay.dhcprelayconfig.relaylist.servers.ServerIpv6) DHCPv6 relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv6": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "default"
}
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-config/relay-list=%7Bsource-vrf%7D/servers/server-ipv6=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:dhcp-relay-state": {
- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
}
DHCP relay state information
netgate.dhcp.relay.DhcpRelayState to be added to list
Array of objects (netgate.dhcp.relay.dhcprelaystate.RelayList) List of configuration |
{- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
DHCP relay state information
netgate.dhcp.relay.DhcpRelayState to be added or updated
object (netgate.dhcp.relay.DhcpRelayState) DHCP relay state information |
{- "netgate-dhcp-relay:dhcp-relay-state": {
- "netgate-dhcp-relay:relay-list": [
- {
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
List of configuration
netgate.dhcp.relay.dhcprelaystate.RelayList to be added to list
object (netgate.dhcp.relay.dhcprelaystate.relaylist.Servers) IPv4 and IPv6 DHCP servers for the source VRF. | |
netgate-dhcp-relay:source-ipv4-address | string The IPv4 source address used when forwarding DHCP packets. |
netgate-dhcp-relay:source-ipv6-address | string The IPv6 source address used when forwarding DHCPv6 packets. |
netgate-dhcp-relay:source-vrf | string Source VRF serviced by DHCP Relay |
{- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
List of configuration
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:relay-list": {
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
}
List of configuration
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelaystate.RelayList to be added or updated
object (netgate.dhcp.relay.dhcprelaystate.RelayList) List of configuration |
{- "netgate-dhcp-relay:relay-list": {
- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}, - "netgate-dhcp-relay:source-ipv4-address": "string",
- "netgate-dhcp-relay:source-ipv6-address": "string",
- "netgate-dhcp-relay:source-vrf": "string"
}
}
List of configuration
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelaystate.relaylist.Servers to be added to list
Array of objects (netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv4) DHCP relay server VRF table id and address | |
Array of objects (netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv6) DHCPv6 relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelaystate.relaylist.Servers to be added or updated
object (netgate.dhcp.relay.dhcprelaystate.relaylist.Servers) IPv4 and IPv6 DHCP servers for the source VRF. |
{- "netgate-dhcp-relay:servers": {
- "netgate-dhcp-relay:server-ipv4": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
], - "netgate-dhcp-relay:server-ipv6": [
- {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
]
}
}
IPv4 and IPv6 DHCP servers for the source VRF.
source-vrf required | string Id of relay-list |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv4 to be added to list
netgate-dhcp-relay:ip | string The IPv4 address of the DHCP server. |
netgate-dhcp-relay:vrf | string The VRF which the DHCP server can be reached on. |
{- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers/server-ipv4=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:server-ipv4": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv4 to be added or updated
object (netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv4) DHCP relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv4": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
}
DHCP relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv4 |
ip required | string Id of server-ipv4 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers/server-ipv4=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv6 to be added to list
netgate-dhcp-relay:ip | string The IPv6 address of the DHCPv6 server. |
netgate-dhcp-relay:vrf | string The VRF which the DHCPv6 server can be reached on. |
{- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers/server-ipv6=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{- "netgate-dhcp-relay:server-ipv6": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv6 to be added or updated
object (netgate.dhcp.relay.dhcprelaystate.relaylist.servers.ServerIpv6) DHCPv6 relay server VRF table id and address |
{- "netgate-dhcp-relay:server-ipv6": {
- "netgate-dhcp-relay:ip": "string",
- "netgate-dhcp-relay:vrf": "string"
}
}
DHCPv6 relay server VRF table id and address
source-vrf required | string Id of relay-list |
vrf required | string Id of server-ipv6 |
ip required | string Id of server-ipv6 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-dhcp-relay:dhcp-relay-state/relay-list=%7Bsource-vrf%7D/servers/server-ipv6=%7Bvrf%7D,%7Bip%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }