This YANG module provides a data model for host interfaces.
Copyright 2018-2020 Rubicon Communications, LLC.
Example URL
Interface configuration parameters.
netgate.host.interface.HostIfConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
Interface configuration parameters.
netgate.host.interface.HostIfConfig to be added to list
netgate-host-interface:host-if-config | object (netgate.host.interface.HostIfConfig) |
Object created
Internal error
Object already exists
Example URL
Interface configuration parameters.
netgate.host.interface.HostIfConfig to be added or updated
netgate-host-interface:host-if-config-wrapper | object (netgate.host.interface.HostIfConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Interface configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
The list of configured host interfaces on the device.
netgate.host.interface.hostifconfig.Interface to be added to list
interface | object (netgate.host.interface.hostifconfig.Interface) |
Object created
Internal error
Object already exists
Example URL
The list of configured host interfaces on the device.
name required | string Id of interface |
netgate.host.interface.hostifconfig.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/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
The list of configured host interfaces on the device.
name required | string Id of interface |
netgate.host.interface.hostifconfig.Interface to be added or updated
netgate-host-interface:interface-wrapper | object (netgate.host.interface.hostifconfig.InterfaceWrapper) |
Object created
Object modified
Internal error
Example URL
The list of configured host interfaces on the device.
name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/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
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv4" 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
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv4 to be added to list
ipv4 | object (netgate.host.interface.hostifconfig.interface.Ipv4) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv4 to be added or updated
netgate-host-interface:ipv4-wrapper | object (netgate.host.interface.hostifconfig.interface.Ipv4Wrapper) |
Object created
Object modified
Internal error
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv4" 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
returns netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv4.addresstype.static.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/interface=%7Bname%7D/ipv4/address" req, _ := http