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