This YANG module provides a Netgate-defined data model for tunnel management.
Copyright 2022 Rubicon Communications, LLC.
Example URL
Tunnel-related configurations.
netgate.tunnel.TunnelsConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-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
Tunnel-related configurations.
netgate.tunnel.TunnelsConfig to be added to list
netgate-tunnel:tunnels-config | object (netgate.tunnel.TunnelsConfig) |
Object created
Internal error
Object already exists
Example URL
Tunnel-related configurations.
netgate.tunnel.TunnelsConfig to be added or updated
netgate-tunnel:tunnels-config-wrapper | object (netgate.tunnel.TunnelsConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Tunnel-related configurations.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-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
Next hop configurations for multipoint tunnels.
netgate.tunnel.tunnelsconfig.NextHops
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-config/next-hops" 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
Next hop configurations for multipoint tunnels.
netgate.tunnel.tunnelsconfig.NextHops to be added to list
next-hops | object (netgate.tunnel.tunnelsconfig.NextHops) |
Object created
Internal error
Object already exists
Example URL
Next hop configurations for multipoint tunnels.
netgate.tunnel.tunnelsconfig.NextHops to be added or updated
netgate-tunnel:next-hops-wrapper | object (netgate.tunnel.tunnelsconfig.NextHopsWrapper) |
Object created
Object modified
Internal error
Example URL
Next hop configurations for multipoint tunnels.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-config/next-hops" 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
Next-hop configuration for a tunnel interface.
netgate.tunnel.tunnelsconfig.nexthops.TunnelInterface to be added to list
tunnel-interface | object (netgate.tunnel.tunnelsconfig.nexthops.TunnelInterface) |
Object created
Internal error
Object already exists
Example URL
Next-hop configuration for a tunnel interface.
name required | string Id of tunnel-interface |
netgate.tunnel.tunnelsconfig.nexthops.TunnelInterface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-config/next-hops/tunnel-interface=%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
Next-hop configuration for a tunnel interface.
name required | string Id of tunnel-interface |
netgate.tunnel.tunnelsconfig.nexthops.TunnelInterface to be added or updated
netgate-tunnel:tunnel-interface-wrapper | object (netgate.tunnel.tunnelsconfig.nexthops.TunnelInterfaceWrapper) |
Object created
Object modified
Internal error
Example URL
Next-hop configuration for a tunnel interface.
name required | string Id of tunnel-interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-tunnel:tunnels-config/next-hops/tunnel-interface=%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
IPv4 address reachable over a multipoint tunnel.
name required | string Id of tunnel-interface |
netgate.tunnel.tunnelsconfig.nexthops.tunnelinterface.Ipv4TunnelDestination to be added to list
ipv4-tunnel-destination | object (netgate.tunnel.tunnelsconfig.nexthops.tunnelinterface.Ipv4TunnelDestination) |
Object created
Internal error
Object already exists