This YANG module provides global ip configuration such as ip-reassembly.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
returns netgate.ip.IpConfig
netgate.ip.IpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-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
creates netgate.ip.IpConfig
netgate.ip.IpConfig to be added to list
netgate-ip:ip-config | object (netgate.ip.IpConfig) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ip.IpConfig
netgate.ip.IpConfig to be added or updated
netgate-ip:ip-config-wrapper | object (netgate.ip.IpConfigWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ip.IpConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-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
returns netgate.ip.ipconfig.Reassembly
netgate.ip.ipconfig.Reassembly
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly" 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.ip.ipconfig.Reassembly
netgate.ip.ipconfig.Reassembly to be added to list
reassembly | object (netgate.ip.ipconfig.Reassembly) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ip.ipconfig.Reassembly
netgate.ip.ipconfig.Reassembly to be added or updated
netgate-ip:reassembly-wrapper | object (netgate.ip.ipconfig.ReassemblyWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.ip.ipconfig.Reassembly
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly" 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.ip.ReassemblyGrouping
netgate.ip.ReassemblyGrouping
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full" 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.ip.ReassemblyGrouping
netgate.ip.ReassemblyGrouping to be added to list
full | object (netgate.ip.ReassemblyGrouping) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.ip.ReassemblyGrouping
netgate.ip.ReassemblyGrouping to be added or updated
full | object (netgate.ip.ReassemblyGrouping) |
Object created
Object modified
Internal error
Example URL
removes netgate.ip.ReassemblyGrouping
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full" 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
Ip4-reassembly settings.
netgate.ip.reassemblygrouping.Ipv4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/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)) }