This YANG module provides a data model for host interfaces.
Copyright 2018-2019 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
interface | Array of objects (netgate.host.interface.hostifconfig.Interface) The list of configured host interfaces on the device. |
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 | object (netgate.host.interface.HostIfConfig) |
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
ipv4 | object (netgate.host.interface.hostifconfig.interface.Ipv4) |
ipv6 | object (netgate.host.interface.hostifconfig.interface.Ipv6) |
name | string The name of the host interface. |
description | string A textual description of the host interface. |
enabled | boolean This leaf contains the configured, desired state of the interface. |
mtu | integer <int32> The size, in octets, of the largest packet that the interface will send and receive. |
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/netgate-host-interface: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 to list
ipv4 | object (netgate.host.interface.hostifconfig.interface.Ipv4) |
ipv6 | object (netgate.host.interface.hostifconfig.interface.Ipv6) |
name | string The name of the host interface. |
description | string A textual description of the host interface. |
enabled | boolean This leaf contains the configured, desired state of the interface. |
mtu | integer <int32> The size, in octets, of the largest packet that the interface will send and receive. |
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 to be added or updated
netgate-host-interface:interface | object (netgate.host.interface.hostifconfig.Interface) |
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/netgate-host-interface: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/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface: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
address | object (netgate.host.interface.hostifconfig.interface.ipv4.Address) |
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 | object (netgate.host.interface.hostifconfig.interface.Ipv4) |
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/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface: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.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv4.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv4/netgate-host-interface:address" 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
creates netgate.host.interface.hostifconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv4.Address to be added to list
ip | Array of strings An IPv4 prefix on the host interface. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.host.interface.hostifconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv4.Address to be added or updated
netgate-host-interface:address | object (netgate.host.interface.hostifconfig.interface.ipv4.Address) |
Object created
Object modified
Internal error
Example URL
removes netgate.host.interface.hostifconfig.interface.ipv4.Address
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/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv4/netgate-host-interface:address" 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 IPv6 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6" 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 IPv6 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv6 to be added to list
address | object (netgate.host.interface.hostifconfig.interface.ipv6.Address) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.Ipv6 to be added or updated
netgate-host-interface:ipv6 | object (netgate.host.interface.hostifconfig.interface.Ipv6) |
Object created
Object modified
Internal error
Example URL
Parameters for the IPv6 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/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6" 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.ipv6.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv6.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-config/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6/netgate-host-interface:address" 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
creates netgate.host.interface.hostifconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv6.Address to be added to list
ip | Array of strings An IPv6 prefix on the host interface. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.host.interface.hostifconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.host.interface.hostifconfig.interface.ipv6.Address to be added or updated
netgate-host-interface:address | object (netgate.host.interface.hostifconfig.interface.ipv6.Address) |
Object created
Object modified
Internal error
Example URL
removes netgate.host.interface.hostifconfig.interface.ipv6.Address
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/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6/netgate-host-interface:address" 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
Interface configuration parameters.
netgate.host.interface.HostIfState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-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
The list of configured host interfaces on the device.
name required | string Id of interface |
netgate.host.interface.hostifstate.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-state/netgate-host-interface: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
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.host.interface.hostifstate.interface.Ipv4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-state/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface: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
returns netgate.host.interface.hostifstate.interface.ipv4.Address
name required | string Id of interface |
netgate.host.interface.hostifstate.interface.ipv4.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-state/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv4/netgate-host-interface:address" 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 IPv6 address family.
name required | string Id of interface |
netgate.host.interface.hostifstate.interface.Ipv6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-state/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6" 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
returns netgate.host.interface.hostifstate.interface.ipv6.Address
name required | string Id of interface |
netgate.host.interface.hostifstate.interface.ipv6.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host-interface:host-if-state/netgate-host-interface:interface=%7Bname%7D/netgate-host-interface:ipv6/netgate-host-interface:address" 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)) }