This YANG module provides a data model for network interfaces.
Copyright 2017-2023 Rubicon Communications, LLC.
Example URL
Interface configuration parameters.
netgate.interface.InterfacesConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-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.interface.InterfacesConfig to be added to list
netgate-interface:interfaces-config | object (netgate.interface.InterfacesConfig) |
Object created
Internal error
Object already exists
Example URL
Interface configuration parameters.
netgate.interface.InterfacesConfig to be added or updated
netgate-interface:interfaces-config-wrapper | object (netgate.interface.InterfacesConfigWrapper) |
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-interface:interfaces-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
Bond interface configuration table.
netgate.interface.interfacesconfig.BondTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table" 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
Bond interface configuration table.
netgate.interface.interfacesconfig.BondTable to be added to list
bond-table | object (netgate.interface.interfacesconfig.BondTable) |
Object created
Internal error
Object already exists
Example URL
Bond interface configuration table.
netgate.interface.interfacesconfig.BondTable to be added or updated
netgate-interface:bond-table-wrapper | object (netgate.interface.interfacesconfig.BondTableWrapper) |
Object created
Object modified
Internal error
Example URL
Bond interface configuration table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table" 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
Bond interface.
netgate.interface.interfacesconfig.bondtable.Bond to be added to list
bond | object (netgate.interface.interfacesconfig.bondtable.Bond) |
Object created
Internal error
Object already exists
Example URL
Bond interface.
instance required | integer <int64> Id of bond |
netgate.interface.interfacesconfig.bondtable.Bond
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond=%7Binstance%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
Bond interface.
instance required | integer <int64> Id of bond |
netgate.interface.interfacesconfig.bondtable.Bond to be added or updated
netgate-interface:bond-wrapper | object (netgate.interface.interfacesconfig.bondtable.BondWrapper) |
Object created
Object modified
Internal error
Example URL
Bond interface.
instance required | integer <int64> Id of bond |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bond-table/bond=%7Binstance%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
Bridge mapping table.
netgate.interface.interfacesconfig.BridgeTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table" 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
Bridge mapping table.
netgate.interface.interfacesconfig.BridgeTable to be added to list
bridge-table | object (netgate.interface.interfacesconfig.BridgeTable) |
Object created
Internal error
Object already exists
Example URL
Bridge mapping table.
netgate.interface.interfacesconfig.BridgeTable to be added or updated
netgate-interface:bridge-table-wrapper | object (netgate.interface.interfacesconfig.BridgeTableWrapper) |
Object created
Object modified
Internal error
Example URL
Bridge mapping table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table" 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
Bridge Domain Id.
netgate.interface.interfacesconfig.bridgetable.BridgeEntry to be added to list
bridge-entry | object (netgate.interface.interfacesconfig.bridgetable.BridgeEntry) |
Object created
Internal error
Object already exists
Example URL
Bridge Domain Id.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.BridgeEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%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
Bridge Domain Id.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.BridgeEntry to be added or updated
netgate-interface:bridge-entry-wrapper | object (netgate.interface.interfacesconfig.bridgetable.BridgeEntryWrapper) |
Object created
Object modified
Internal error
Example URL
Bridge Domain Id.
bdi required | integer <int64> Id of bridge-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%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
Bridge ARP Entry Table.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table" 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
Bridge ARP Entry Table.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable to be added to list
bridge-arp-table | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable) |
Object created
Internal error
Object already exists
Example URL
Bridge ARP Entry Table.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable to be added or updated
netgate-interface:bridge-arp-table-wrapper | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTableWrapper) |
Object created
Object modified
Internal error
Example URL
Bridge ARP Entry Table.
bdi required | integer <int64> Id of bridge-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table" 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
Bridge ARP entry table.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry to be added to list
bridge-arp-entry | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry) |
Object created
Internal error
Object already exists
Example URL
Bridge ARP entry table.
bdi required | integer <int64> Id of bridge-entry |
ip-address required | string Id of bridge-arp-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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
Bridge ARP entry table.
bdi required | integer <int64> Id of bridge-entry |
ip-address required | string Id of bridge-arp-entry |
netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry to be added or updated
netgate-interface:bridge-arp-entry-wrapper | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntryWrapper) |
Object created
Object modified
Internal error
Example URL
Bridge ARP entry table.
bdi required | integer <int64> Id of bridge-entry |
ip-address required | string Id of bridge-arp-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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
The list of configured interfaces on the device.
netgate.interface.interfacesconfig.Interface to be added to list
interface | object (netgate.interface.interfacesconfig.Interface) |
Object created
Internal error
Object already exists
Example URL
The list of configured interfaces on the device.
name required | string Id of interface |
netgate.interface.interfacesconfig.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-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 interfaces on the device.
name required | string Id of interface |
netgate.interface.interfacesconfig.Interface to be added or updated
netgate-interface:interface-wrapper | object (netgate.interface.interfacesconfig.InterfaceWrapper) |
Object created
Object modified
Internal error
Example URL
The list of configured 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-interface:interfaces-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
If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.AccessList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list" 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
If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.AccessList to be added to list
access-list | object (netgate.interface.interfacesconfig.interface.AccessList) |
Object created
Internal error
Object already exists
Example URL
If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.AccessList to be added or updated
netgate-interface:access-list-wrapper | object (netgate.interface.interfacesconfig.interface.AccessListWrapper) |
Object created
Object modified
Internal error
Example URL
If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.
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-interface:interfaces-config/interface=%7Bname%7D/access-list" 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
These are the ACL rule-sets that apply to ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Input
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/input" 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
These are the ACL rule-sets that apply to ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Input to be added to list
input | object (netgate.interface.interfacesconfig.interface.accesslist.Input) |
Object created
Internal error
Object already exists
Example URL
These are the ACL rule-sets that apply to ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Input to be added or updated
netgate-interface:input-wrapper | object (netgate.interface.interfacesconfig.interface.accesslist.InputWrapper) |
Object created
Object modified
Internal error
Example URL
These are the ACL rule-sets that apply to ingress packets.
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-interface:interfaces-config/interface=%7Bname%7D/access-list/input" 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
Each ACL rule-set can appear at most once within the input list.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.input.AclList to be added to list
acl-list | object (netgate.interface.interfacesconfig.interface.accesslist.input.AclList) |
Object created
Internal error
Object already exists
Example URL
Each ACL rule-set can appear at most once within the input list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
netgate.interface.interfacesconfig.interface.accesslist.input.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/input/acl-list=%7Bacl-name%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
Each ACL rule-set can appear at most once within the input list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
netgate.interface.interfacesconfig.interface.accesslist.input.AclList to be added or updated
netgate-interface:acl-list-wrapper | object (netgate.interface.interfacesconfig.interface.accesslist.input.AclListWrapper) |
Object created
Object modified
Internal error
Example URL
Each ACL rule-set can appear at most once within the input list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/input/acl-list=%7Bacl-name%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
An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Macip
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/macip" 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
An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Macip to be added to list
macip | object (netgate.interface.interfacesconfig.interface.accesslist.Macip) |
Object created
Internal error
Object already exists
Example URL
An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Macip to be added or updated
netgate-interface:macip-wrapper | object (netgate.interface.interfacesconfig.interface.accesslist.MacipWrapper) |
Object created
Object modified
Internal error
Example URL
An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.
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-interface:interfaces-config/interface=%7Bname%7D/access-list/macip" 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
These are the ACL rule-sets that apply to egress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Output
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/output" 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
These are the ACL rule-sets that apply to egress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Output to be added to list
output | object (netgate.interface.interfacesconfig.interface.accesslist.Output) |
Object created
Internal error
Object already exists
Example URL
These are the ACL rule-sets that apply to egress packets.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.Output to be added or updated
netgate-interface:output-wrapper | object (netgate.interface.interfacesconfig.interface.accesslist.OutputWrapper) |
Object created
Object modified
Internal error
Example URL
These are the ACL rule-sets that apply to egress packets.
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-interface:interfaces-config/interface=%7Bname%7D/access-list/output" 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
Each ACL rule-set can appear at most once within the output list.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.accesslist.output.AclList to be added to list
acl-list | object (netgate.interface.interfacesconfig.interface.accesslist.output.AclList) |
Object created
Internal error
Object already exists
Example URL
Each ACL rule-set can appear at most once within the output list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
netgate.interface.interfacesconfig.interface.accesslist.output.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/output/acl-list=%7Bacl-name%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
Each ACL rule-set can appear at most once within the output list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
netgate.interface.interfacesconfig.interface.accesslist.output.AclList to be added or updated
netgate-interface:acl-list-wrapper | object (netgate.interface.interfacesconfig.interface.accesslist.output.AclListWrapper) |
Object created
Object modified
Internal error
Example URL
Each ACL rule-set can appear at most once within the output list.
name required | string Id of interface |
acl-name required | string Id of acl-list |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/access-list/output/acl-list=%7Bacl-name%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
If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bond
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/bond" 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
If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bond to be added to list
bond | object (netgate.interface.interfacesconfig.interface.Bond) |
Object created
Internal error
Object already exists
Example URL
If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bond to be added or updated
netgate-interface:bond-wrapper | object (netgate.interface.interfacesconfig.interface.BondWrapper) |
Object created
Object modified
Internal error
Example URL
If the interface is being used as a slave, this node contains the corresponding bond ID and slave options.
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-interface:interfaces-config/interface=%7Bname%7D/bond" 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
If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bridge
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/bridge" 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
If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bridge to be added to list
bridge | object (netgate.interface.interfacesconfig.interface.Bridge) |
Object created
Internal error
Object already exists
Example URL
If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Bridge to be added or updated
netgate-interface:bridge-wrapper | object (netgate.interface.interfacesconfig.interface.BridgeWrapper) |
Object created
Object modified
Internal error
Example URL
If the interface is being used as a bridge, this node contains the corresponding Bridge Domain Id, Split Horizon, and/or Bridge Virtual Id information.
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-interface:interfaces-config/interface=%7Bname%7D/bridge" 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
If the interface is configured using a DHCP client, that configuration is contained here.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.DhcpClient
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/dhcp-client" 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
If the interface is configured using a DHCP client, that configuration is contained here.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.DhcpClient to be added to list
dhcp-client | object (netgate.interface.interfacesconfig.interface.DhcpClient) |
Object created
Internal error
Object already exists
Example URL
If the interface is configured using a DHCP client, that configuration is contained here.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.DhcpClient to be added or updated
netgate-interface:dhcp-client-wrapper | object (netgate.interface.interfacesconfig.interface.DhcpClientWrapper) |
Object created
Object modified
Internal error
Example URL
If the interface is configured using a DHCP client, that configuration is contained here.
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-interface:interfaces-config/interface=%7Bname%7D/dhcp-client" 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.interface.interfacesconfig.interface.Ipv4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-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.interface.interfacesconfig.interface.Ipv4 to be added to list
ipv4 | object (netgate.interface.interfacesconfig.interface.Ipv4) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv4 to be added or updated
netgate-interface:ipv4-wrapper | object (netgate.interface.interfacesconfig.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-interface:interfaces-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.interface.interfacesconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/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.interface.interfacesconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Address to be added to list
address | object (netgate.interface.interfacesconfig.interface.ipv4.Address) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Address to be added or updated
netgate-interface:address-wrapper | object (netgate.interface.interfacesconfig.interface.ipv4.AddressWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.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-interface:interfaces-config/interface=%7Bname%7D/ipv4/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
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Reassembly
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/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
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Reassembly to be added to list
reassembly | object (netgate.interface.interfacesconfig.interface.ipv4.Reassembly) |
Object created
Internal error
Object already exists
Example URL
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Reassembly to be added or updated
netgate-interface:reassembly-wrapper | object (netgate.interface.interfacesconfig.interface.ipv4.ReassemblyWrapper) |
Object created
Object modified
Internal error
Example URL
ip-reassembly feature control.
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-interface:interfaces-config/interface=%7Bname%7D/ipv4/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
IPv4 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp" 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
IPv4 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Tcp to be added to list
tcp | object (netgate.interface.interfacesconfig.interface.ipv4.Tcp) |
Object created
Internal error
Object already exists
Example URL
IPv4 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Tcp to be added or updated
netgate-interface:tcp-wrapper | object (netgate.interface.interfacesconfig.interface.ipv4.TcpWrapper) |
Object created
Object modified
Internal error
Example URL
IPv4 TCP configuration values.
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-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp" 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 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp/mss" 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
IPv4 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss to be added to list
mss | object (netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss) |
Object created
Internal error
Object already exists
Example URL
IPv4 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.tcp.Mss to be added or updated
netgate-interface:mss-wrapper | object (netgate.interface.interfacesconfig.interface.ipv4.tcp.MssWrapper) |
Object created
Object modified
Internal error
Example URL
IPv4 TCP Maximum Segment Size values.
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-interface:interfaces-config/interface=%7Bname%7D/ipv4/tcp/mss" 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.interface.interfacesconfig.interface.Ipv6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/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.interface.interfacesconfig.interface.Ipv6 to be added to list
ipv6 | object (netgate.interface.interfacesconfig.interface.Ipv6) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv6 to be added or updated
netgate-interface:ipv6-wrapper | object (netgate.interface.interfacesconfig.interface.Ipv6Wrapper) |
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-interface:interfaces-config/interface=%7Bname%7D/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.interface.interfacesconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/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.interface.interfacesconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Address to be added to list
address | object (netgate.interface.interfacesconfig.interface.ipv6.Address) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Address to be added or updated
netgate-interface:address-wrapper | object (netgate.interface.interfacesconfig.interface.ipv6.AddressWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.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-interface:interfaces-config/interface=%7Bname%7D/ipv6/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
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Reassembly
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/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
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Reassembly to be added to list
reassembly | object (netgate.interface.interfacesconfig.interface.ipv6.Reassembly) |
Object created
Internal error
Object already exists
Example URL
ip-reassembly feature control.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Reassembly to be added or updated
netgate-interface:reassembly-wrapper | object (netgate.interface.interfacesconfig.interface.ipv6.ReassemblyWrapper) |
Object created
Object modified
Internal error
Example URL
ip-reassembly feature control.
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-interface:interfaces-config/interface=%7Bname%7D/ipv6/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
IPv6 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp" 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
IPv6 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Tcp to be added to list
tcp | object (netgate.interface.interfacesconfig.interface.ipv6.Tcp) |
Object created
Internal error
Object already exists
Example URL
IPv6 TCP configuration values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Tcp to be added or updated
netgate-interface:tcp-wrapper | object (netgate.interface.interfacesconfig.interface.ipv6.TcpWrapper) |
Object created
Object modified
Internal error
Example URL
IPv6 TCP configuration values.
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-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp" 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
IPv6 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp/mss" 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
IPv6 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss to be added to list
mss | object (netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss) |
Object created
Internal error
Object already exists
Example URL
IPv6 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.tcp.Mss to be added or updated
netgate-interface:mss-wrapper | object (netgate.interface.interfacesconfig.interface.ipv6.tcp.MssWrapper) |
Object created
Object modified
Internal error
Example URL
IPv6 TCP Maximum Segment Size values.
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-interface:interfaces-config/interface=%7Bname%7D/ipv6/tcp/mss" 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.interface.interfacesconfig.interface.Lldp
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Lldp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/lldp" 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.interface.interfacesconfig.interface.Lldp
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Lldp to be added to list
lldp | object (netgate.interface.interfacesconfig.interface.Lldp) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.interface.Lldp
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Lldp to be added or updated
netgate-interface:lldp-wrapper | object (netgate.interface.interfacesconfig.interface.LldpWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.interface.Lldp
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-interface:interfaces-config/interface=%7Bname%7D/lldp" 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.interface.interfacesconfig.interface.lldp.Management
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.lldp.Management
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/lldp/management" 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.interface.interfacesconfig.interface.lldp.Management
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.lldp.Management to be added to list
management | object (netgate.interface.interfacesconfig.interface.lldp.Management) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.interface.lldp.Management
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.lldp.Management to be added or updated
netgate-interface:management-wrapper | object (netgate.interface.interfacesconfig.interface.lldp.ManagementWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.interface.lldp.Management
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-interface:interfaces-config/interface=%7Bname%7D/lldp/management" 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
Per-interface parameters for MAP-E and MAP-T.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Map
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/map" 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
Per-interface parameters for MAP-E and MAP-T.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Map to be added to list
map | object (netgate.interface.interfacesconfig.interface.Map) |
Object created
Internal error
Object already exists
Example URL
Per-interface parameters for MAP-E and MAP-T.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Map to be added or updated
netgate-interface:map-wrapper | object (netgate.interface.interfacesconfig.interface.MapWrapper) |
Object created
Object modified
Internal error
Example URL
Per-interface parameters for MAP-E and MAP-T.
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-interface:interfaces-config/interface=%7Bname%7D/map" 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.interface.interfacesconfig.interface.VlanTagRewrite
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.VlanTagRewrite
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/interface=%7Bname%7D/vlan-tag-rewrite" 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.interface.interfacesconfig.interface.VlanTagRewrite
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.VlanTagRewrite to be added to list
vlan-tag-rewrite | object (netgate.interface.interfacesconfig.interface.VlanTagRewrite) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.interface.VlanTagRewrite
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.VlanTagRewrite to be added or updated
netgate-interface:vlan-tag-rewrite-wrapper | object (netgate.interface.interfacesconfig.interface.VlanTagRewriteWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.interface.VlanTagRewrite
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-interface:interfaces-config/interface=%7Bname%7D/vlan-tag-rewrite" 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
Loopback name table.
netgate.interface.interfacesconfig.LoopbackTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table" 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
Loopback name table.
netgate.interface.interfacesconfig.LoopbackTable to be added to list
loopback-table | object (netgate.interface.interfacesconfig.LoopbackTable) |
Object created
Internal error
Object already exists
Example URL
Loopback name table.
netgate.interface.interfacesconfig.LoopbackTable to be added or updated
netgate-interface:loopback-table-wrapper | object (netgate.interface.interfacesconfig.LoopbackTableWrapper) |
Object created
Object modified
Internal error
Example URL
Loopback name table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table" 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
Loopback name.
netgate.interface.interfacesconfig.loopbacktable.Loopback to be added to list
loopback | object (netgate.interface.interfacesconfig.loopbacktable.Loopback) |
Object created
Internal error
Object already exists
Example URL
Loopback name.
name required | string Id of loopback |
netgate.interface.interfacesconfig.loopbacktable.Loopback
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback=%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
Loopback name.
name required | string Id of loopback |
netgate.interface.interfacesconfig.loopbacktable.Loopback to be added or updated
netgate-interface:loopback-wrapper | object (netgate.interface.interfacesconfig.loopbacktable.LoopbackWrapper) |
Object created
Object modified
Internal error
Example URL
Loopback name.
name required | string Id of loopback |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/loopback-table/loopback=%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
Host memif interface configuration table.
netgate.interface.interfacesconfig.MemifTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table" 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
Host memif interface configuration table.
netgate.interface.interfacesconfig.MemifTable to be added to list
memif-table | object (netgate.interface.interfacesconfig.MemifTable) |
Object created
Internal error
Object already exists
Example URL
Host memif interface configuration table.
netgate.interface.interfacesconfig.MemifTable to be added or updated
netgate-interface:memif-table-wrapper | object (netgate.interface.interfacesconfig.MemifTableWrapper) |
Object created
Object modified
Internal error
Example URL
Host memif interface configuration table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table" 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
A unique 32-bit integer identifying this interface.
netgate.interface.interfacesconfig.memiftable.MemifEntry to be added to list
memif-entry | object (netgate.interface.interfacesconfig.memiftable.MemifEntry) |
Object created
Internal error
Object already exists
Example URL
A unique 32-bit integer identifying this interface.
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.MemifEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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
A unique 32-bit integer identifying this interface.
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.MemifEntry to be added or updated
netgate-interface:memif-entry-wrapper | object (netgate.interface.interfacesconfig.memiftable.MemifEntryWrapper) |
Object created
Object modified
Internal error
Example URL
A unique 32-bit integer identifying this interface.
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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
returns netgate.interface.interfacesconfig.memiftable.memifentry.Client
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Client
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%7D/client" 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.interface.interfacesconfig.memiftable.memifentry.Client
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Client to be added to list
client | object (netgate.interface.interfacesconfig.memiftable.memifentry.Client) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.memiftable.memifentry.Client
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Client to be added or updated
netgate-interface:client-wrapper | object (netgate.interface.interfacesconfig.memiftable.memifentry.ClientWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.memiftable.memifentry.Client
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%7D/client" 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
Host memif socket table.
netgate.interface.interfacesconfig.SocketTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table" 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
Host memif socket table.
netgate.interface.interfacesconfig.SocketTable to be added to list
socket-table | object (netgate.interface.interfacesconfig.SocketTable) |
Object created
Internal error
Object already exists
Example URL
Host memif socket table.
netgate.interface.interfacesconfig.SocketTable to be added or updated
netgate-interface:socket-table-wrapper | object (netgate.interface.interfacesconfig.SocketTableWrapper) |
Object created
Object modified
Internal error
Example URL
Host memif socket table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table" 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
A unique 32-bit integer identifying this socket filename.
netgate.interface.interfacesconfig.sockettable.Socket to be added to list
socket | object (netgate.interface.interfacesconfig.sockettable.Socket) |
Object created
Internal error
Object already exists
Example URL
A unique 32-bit integer identifying this socket filename.
id required | integer <int64> Id of socket |
netgate.interface.interfacesconfig.sockettable.Socket
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket=%7Bid%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
A unique 32-bit integer identifying this socket filename.
id required | integer <int64> Id of socket |
netgate.interface.interfacesconfig.sockettable.Socket to be added or updated
netgate-interface:socket-wrapper | object (netgate.interface.interfacesconfig.sockettable.SocketWrapper) |
Object created
Object modified
Internal error
Example URL
A unique 32-bit integer identifying this socket filename.
id required | integer <int64> Id of socket |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/socket-table/socket=%7Bid%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
An interface may have subinterfaces.
netgate.interface.interfacesconfig.Subinterfaces
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces" 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
An interface may have subinterfaces.
netgate.interface.interfacesconfig.Subinterfaces to be added to list
subinterfaces | object (netgate.interface.interfacesconfig.Subinterfaces) |
Object created
Internal error
Object already exists
Example URL
An interface may have subinterfaces.
netgate.interface.interfacesconfig.Subinterfaces to be added or updated
netgate-interface:subinterfaces-wrapper | object (netgate.interface.interfacesconfig.SubinterfacesWrapper) |
Object created
Object modified
Internal error
Example URL
An interface may have subinterfaces.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces" 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
Each subinterface entry represents a VLAN.
netgate.interface.interfacesconfig.subinterfaces.SubifEntry to be added to list
subif-entry | object (netgate.interface.interfacesconfig.subinterfaces.SubifEntry) |
Object created
Internal error
Object already exists
Example URL
Each subinterface entry represents a VLAN.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.SubifEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%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
Each subinterface entry represents a VLAN.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.SubifEntry to be added or updated
netgate-interface:subif-entry-wrapper | object (netgate.interface.interfacesconfig.subinterfaces.SubifEntryWrapper) |
Object created
Object modified
Internal error
Example URL
Each subinterface entry represents a VLAN.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%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
These fields all contribute to the subinterface definition for VLAN handling.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%7D/vlan" 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
These fields all contribute to the subinterface definition for VLAN handling.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan to be added to list
vlan | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan) |
Object created
Internal error
Object already exists
Example URL
These fields all contribute to the subinterface definition for VLAN handling.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan to be added or updated
netgate-interface:vlan-wrapper | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanWrapper) |
Object created
Object modified
Internal error
Example URL
These fields all contribute to the subinterface definition for VLAN handling.
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/subinterfaces/subif-entry=%7Bif-name%7D,%7Bsubid%7D/vlan" 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
Host Tap interface configuration table.
netgate.interface.interfacesconfig.TapTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table" 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
Host Tap interface configuration table.
netgate.interface.interfacesconfig.TapTable to be added to list
tap-table | object (netgate.interface.interfacesconfig.TapTable) |
Object created
Internal error
Object already exists
Example URL
Host Tap interface configuration table.
netgate.interface.interfacesconfig.TapTable to be added or updated
netgate-interface:tap-table-wrapper | object (netgate.interface.interfacesconfig.TapTableWrapper) |
Object created
Object modified
Internal error
Example URL
Host Tap interface configuration table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table" 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
Unique identifing host tap name.
netgate.interface.interfacesconfig.taptable.Tap to be added to list
tap | object (netgate.interface.interfacesconfig.taptable.Tap) |
Object created
Internal error
Object already exists
Example URL
Unique identifing host tap name.
host-name required | string Id of tap |
netgate.interface.interfacesconfig.taptable.Tap
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap=%7Bhost-name%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
Unique identifing host tap name.
host-name required | string Id of tap |
netgate.interface.interfacesconfig.taptable.Tap to be added or updated
netgate-interface:tap-wrapper | object (netgate.interface.interfacesconfig.taptable.TapWrapper) |
Object created
Object modified
Internal error
Example URL
Unique identifing host tap name.
host-name required | string Id of tap |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/tap-table/tap=%7Bhost-name%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
Interface state information.
netgate.interface.InterfacesState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-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
Bond interface state table.
netgate.interface.interfacesstate.BondTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table" 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
Bond interface.
instance required | integer <int64> Id of bond |
netgate.interface.interfacesstate.bondtable.Bond
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%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 slave interfaces.
instance required | integer <int64> Id of bond |
netgate.interface.interfacesstate.bondtable.bond.SlaveIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%7D/slave-if-table" 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
Slave interface.
instance required | integer <int64> Id of bond |
if-name required | string Id of slave-if |
netgate.interface.interfacesstate.bondtable.bond.slaveiftable.SlaveIf
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bond-table/bond=%7Binstance%7D/slave-if-table/slave-if=%7Bif-name%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
Bridge mapping table.
netgate.interface.interfacesstate.BridgeTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table" 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
Bridge Domain Id.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesstate.bridgetable.BridgeEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%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
Bridge ARP Entry Table.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesstate.bridgetable.bridgeentry.BridgeArpTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table" 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
Bridge ARP entry table.
bdi required | integer <int64> Id of bridge-entry |
ip-address required | string Id of bridge-arp-entry |
netgate.interface.interfacesstate.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/bridge-arp-table/bridge-arp-entry=%7Bip-address%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
Bridge Domain Interface Members.
bdi required | integer <int64> Id of bridge-entry |
netgate.interface.interfacesstate.bridgetable.bridgeentry.DomainIfMembers
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/domain-if-members" 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
Bridge domain interface members.
bdi required | integer <int64> Id of bridge-entry |
if-name required | string Id of domain-if |
netgate.interface.interfacesstate.bridgetable.bridgeentry.domainifmembers.DomainIf
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/bridge-table/bridge-entry=%7Bbdi%7D/domain-if-members/domain-if=%7Bif-name%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 interfaces on the device.
name required | string Id of interface |
netgate.interface.interfacesstate.Interface
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/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
If the interface has any Access Control Lists, they are listed here in two groups: those that apply to packet ingress and those that apply to egresss. The two sets of ACLs are sorted independenty and applied in ascending sequence-number order.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.AccessList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list" 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
These are the ACL rule-sets that apply to ingress packets.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.accesslist.Input
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/input" 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
Each ACL rule-set can appear at most once within the input list.
name required | string Id of interface |
sequence required | integer <int64> Id of acl-list |
netgate.interface.interfacesstate.interface.accesslist.input.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/input/acl-list=%7Bsequence%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
An interface may also have at most one ACL based upon a combination of MAC address and IP. If that ACL is present, it is always on the ingress packets.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.accesslist.Macip
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/macip" 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
These are the ACL rule-sets that apply to egress packets.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.accesslist.Output
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/output" 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
Each ACL rule-set can appear at most once within the output list.
name required | string Id of interface |
sequence required | integer <int64> Id of acl-list |
netgate.interface.interfacesstate.interface.accesslist.output.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/access-list/output/acl-list=%7Bsequence%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
If the interface is being used as a slave, this node contains the corresponding bond interface.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.Bond
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/bond" 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
Per-interface counters from VPP.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.Counters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/counters" 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
IPv4 address family state information.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.Ipv4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/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
returns netgate.interface.interfacesstate.interface.ipv4.Address
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv4.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/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
IPv4 TCP values.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv4.Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/tcp" 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
IPv4 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv4.tcp.Mss
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv4/tcp/mss" 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
IPv6 address family state information.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.Ipv6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/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.interface.interfacesstate.interface.ipv6.Address
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv6.Address
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/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
IPv6 TCP values.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv6.Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/tcp" 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
IPv6 TCP Maximum Segment Size values.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.ipv6.tcp.Mss
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/ipv6/tcp/mss" 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
If the interface is a bond interface, this node contains the list of its slave interfaces.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.SlaveIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/slave-if-table" 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
Slave interface.
name required | string Id of interface |
if-name required | string Id of slave-if |
netgate.interface.interfacesstate.interface.slaveiftable.SlaveIf
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/slave-if-table/slave-if=%7Bif-name%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
These fields all contribute to the subinterface definition for VLAN handling.
name required | string Id of interface |
netgate.interface.interfacesstate.interface.Subif
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/subif" 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.interface.interfacesstate.interface.VlanTagRewrite
name required | string Id of interface |
netgate.interface.interfacesstate.interface.VlanTagRewrite
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/interface=%7Bname%7D/vlan-tag-rewrite" 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
Link Aggregation Control Protocol (LACP) state table.
netgate.interface.interfacesstate.LacpTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table" 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
LACP entry.
slave-if-name required | string Id of lacp-entry |
netgate.interface.interfacesstate.lacptable.LacpEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-name%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 actor parameters.
slave-if-name required | string Id of lacp-entry |
netgate.interface.interfacesstate.lacptable.lacpentry.Actor
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-name%7D/actor" 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 partner parameters.
slave-if-name required | string Id of lacp-entry |
netgate.interface.interfacesstate.lacptable.lacpentry.Partner
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/lacp-table/lacp-entry=%7Bslave-if-name%7D/partner" 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
Loopback name table.
netgate.interface.interfacesstate.LoopbackTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table" 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
Loopback name.
name required | string Id of loopback |
netgate.interface.interfacesstate.loopbacktable.Loopback
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/loopback-table/loopback=%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
Host memif interface state table.
netgate.interface.interfacesstate.MemifTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/memif-table" 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
A unique 32-bit integer identifying this interface.
socket-id required | integer <int64> Id of memif-entry |
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesstate.memiftable.MemifEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/memif-table/memif-entry=%7Bsocket-id%7D,%7Bmemif-id%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
Host memif socket table.
netgate.interface.interfacesstate.SocketTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/socket-table" 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
A unique 32-bit integer identifying this socket filename.
id required | integer <int64> Id of socket |
netgate.interface.interfacesstate.sockettable.Socket
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/socket-table/socket=%7Bid%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
Host Tap table.
netgate.interface.interfacesstate.TapTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/tap-table" 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
Unique identifing host tap name.
host-name required | string Id of tap |
netgate.interface.interfacesstate.taptable.Tap
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-state/tap-table/tap=%7Bhost-name%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
operates on netgate.interface.ClearInterfaceCounters
input | object (netgate.interface.clearinterfacecounters.Input) |
No response
Internal error
Example URL
Correct response
No response
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-interface:packet-counters" req, _ := http.NewRequest("POST", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }