This YANG module provides a Netgate-defined data-model for VXLAN data.
Copyright 2018-2020 Rubicon Communications, LLC.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-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-vxlan:vxlan-config": {
- "netgate-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
}
Configuration for VXLAN tunnels.
netgate.vxlan.VxlanConfig to be added to list
object (netgate.vxlan.vxlanconfig.VxlanTable) VXLAN table. |
{- "netgate-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
Configuration for VXLAN tunnels.
netgate.vxlan.VxlanConfig to be added or updated
object (netgate.vxlan.VxlanConfig) Configuration for VXLAN tunnels. |
{- "netgate-vxlan:vxlan-config": {
- "netgate-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table" 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-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
VXLAN table.
netgate.vxlan.vxlanconfig.VxlanTable to be added to list
Array of objects (netgate.vxlan.vxlanconfig.vxlantable.Tunnel) VXLAN tunnel name. |
{- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
VXLAN table.
netgate.vxlan.vxlanconfig.VxlanTable to be added or updated
object (netgate.vxlan.vxlanconfig.VxlanTable) VXLAN table. |
{- "netgate-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table" 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)) }
VXLAN tunnel name.
netgate.vxlan.vxlanconfig.vxlantable.Tunnel to be added to list
netgate-vxlan:vni | integer <int64> VNI value, u24. |
netgate-vxlan:instance | integer <int64> Each VXLAN creates an interface. The created
interface will be named 'vxlan_tunnel |
netgate-vxlan:encap-route-table | string The name of an encapsulation route table. |
netgate-vxlan:name | string The VXLAN tunnel identifier. A unique name for this VXLAN tunnel. |
netgate-vxlan:mcast-if-name | string The interface to use, along with a multicast destination IP address, if a multicast destination is desired. |
netgate-vxlan:src-ip-address | string The source IP address. |
netgate-vxlan:dst-ip-address | string The destination IP address. |
{- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
VXLAN tunnel name.
name required | string Id of tunnel |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel=%7Bname%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-vxlan:tunnel": {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
}
VXLAN tunnel name.
name required | string Id of tunnel |
netgate.vxlan.vxlanconfig.vxlantable.Tunnel to be added or updated
object (netgate.vxlan.vxlanconfig.vxlantable.Tunnel) VXLAN tunnel name. |
{- "netgate-vxlan:tunnel": {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
}
VXLAN tunnel name.
name required | string Id of tunnel |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-config/vxlan-table/tunnel=%7Bname%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-vxlan:vxlan-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-vxlan:vxlan-state": {
- "netgate-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:if-name": "string",
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table" 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-vxlan:vxlan-table": {
- "netgate-vxlan:tunnel": [
- {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:if-name": "string",
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
]
}
}
VXLAN tunnel name.
name required | string Id of tunnel |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vxlan:vxlan-state/vxlan-table/tunnel=%7Bname%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-vxlan:tunnel": {
- "netgate-vxlan:vni": 0,
- "netgate-vxlan:if-name": "string",
- "netgate-vxlan:instance": 0,
- "netgate-vxlan:encap-route-table": "string",
- "netgate-vxlan:name": "string",
- "netgate-vxlan:mcast-if-name": "string",
- "netgate-vxlan:src-ip-address": "string",
- "netgate-vxlan:dst-ip-address": "string"
}
}