This YANG module provides a Netgate-defined data-model for Network Address Translation data.
Copyright 2017-2020 Rubicon Communications, LLC.
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-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
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added to list
netgate-nat:nat-config | object (netgate.nat.NatConfig) |
Object created
Internal error
Object already exists
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added or updated
netgate-nat:nat-config-wrapper | object (netgate.nat.NatConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Network Address Translation (NAT) data needed to support VPP.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-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
Dynamic mapping information.
netgate.nat.natconfig.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/dynamic" 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
Dynamic mapping information.
netgate.nat.natconfig.Dynamic to be added to list
dynamic | object (netgate.nat.natconfig.Dynamic) |
Object created
Internal error
Object already exists