This YANG module provides a data model for network interfaces.
Copyright 2017-2019 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
bond-table | object (netgate.interface.interfacesconfig.BondTable) |
loopback-table | object (netgate.interface.interfacesconfig.LoopbackTable) |
bridge-table | object (netgate.interface.interfacesconfig.BridgeTable) |
subinterfaces | object (netgate.interface.interfacesconfig.Subinterfaces) |
tap-table | object (netgate.interface.interfacesconfig.TapTable) |
interface | Array of objects (netgate.interface.interfacesconfig.Interface) The list of configured interfaces on the device. |
memif-table | object (netgate.interface.interfacesconfig.MemifTable) |
socket-table | object (netgate.interface.interfacesconfig.SocketTable) |
Object created
Internal error
Object already exists
Example URL
Interface configuration parameters.
netgate.interface.InterfacesConfig to be added or updated
netgate-interface:interfaces-config | object (netgate.interface.InterfacesConfig) |
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/netgate-interface: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 | Array of objects (netgate.interface.interfacesconfig.bondtable.Bond) Bond interface. |
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 | object (netgate.interface.interfacesconfig.BondTable) |
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/netgate-interface: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
mode | string (netgate.interface.BondMode) Enum: "round-robin" "active-backup" "xor" "broadcast" "lacp" |
mac-address | string The MAC address for the interface. |
load-balance | string (netgate.interface.LoadBalance) Enum: "l2" "l23" "l34" |
instance | integer <int64> The identifier. A unique number for this bond interface. |
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/netgate-interface:bond-table/netgate-interface: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 to list
mode | string (netgate.interface.BondMode) Enum: "round-robin" "active-backup" "xor" "broadcast" "lacp" |
mac-address | string The MAC address for the interface. |
load-balance | string (netgate.interface.LoadBalance) Enum: "l2" "l23" "l34" |
instance | integer <int64> The identifier. A unique number for this bond interface. |
Object created
Internal error
Object already exists
Example URL
Bond interface.
instance required | integer <int64> Id of bond |
netgate.interface.interfacesconfig.bondtable.Bond to be added or updated
netgate-interface:bond | object (netgate.interface.interfacesconfig.bondtable.Bond) |
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/netgate-interface:bond-table/netgate-interface: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/netgate-interface: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-entry | Array of objects (netgate.interface.interfacesconfig.bridgetable.BridgeEntry) Bridge Domain Id. |
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 | object (netgate.interface.interfacesconfig.BridgeTable) |
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/netgate-interface: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
learn | boolean Learning on all interfaces in the bd |
forward | boolean Forwarding on all interfaces in the bd |
bdi | integer <int64> The Bridge Domain Identifier. A unique number for this entry. |
mac-age | integer <int32> MAC aging time in min, 0 for disabled. |
bridge-arp-table | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable) |
arp-term | boolean ARP termination in the bd |
uu-flood | boolean Unknown unicast flood in the bd |
flood | boolean Broadcast/multicast flooding in the bd |
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/netgate-interface:bridge-table/netgate-interface: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 to list
learn | boolean Learning on all interfaces in the bd |
forward | boolean Forwarding on all interfaces in the bd |
bdi | integer <int64> The Bridge Domain Identifier. A unique number for this entry. |
mac-age | integer <int32> MAC aging time in min, 0 for disabled. |
bridge-arp-table | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable) |
arp-term | boolean ARP termination in the bd |
uu-flood | boolean Unknown unicast flood in the bd |
flood | boolean Broadcast/multicast flooding in the bd |
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 to be added or updated
netgate-interface:bridge-entry | object (netgate.interface.interfacesconfig.bridgetable.BridgeEntry) |
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/netgate-interface:bridge-table/netgate-interface: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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface: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-entry | Array of objects (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry) Bridge ARP entry table. |
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 | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.BridgeArpTable) |
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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface: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
mac-address | string The MAC address of an ARP entry. |
ip-address | string The IPv4 or IPv6 address of an ARP entry. |
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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface:bridge-arp-table/netgate-interface: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 to list
mac-address | string The MAC address of an ARP entry. |
ip-address | string The IPv4 or IPv6 address of an ARP entry. |
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 to be added or updated
netgate-interface:bridge-arp-entry | object (netgate.interface.interfacesconfig.bridgetable.bridgeentry.bridgearptable.BridgeArpEntry) |
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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface:bridge-arp-table/netgate-interface: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
mac-address | string The Media Access Control (MAC) address of the interface. |
host-tap-name | string If this interface is associated with a host tap, this field names that host tap interface. |
description | string A textual description of the interface. |
inside | boolean If set true, this interface is used as a NAT inside interface. |
bond | object (netgate.interface.interfacesconfig.interface.Bond) |
enabled | boolean This leaf contains the configured, desired state of the interface. |
mtu | integer <int32> The size, in octets, of the largest packet that the interface will send and receive. |
ipv4 | object (netgate.interface.interfacesconfig.interface.Ipv4) |
access-list | object (netgate.interface.interfacesconfig.interface.AccessList) |
dhcp-client | object (netgate.interface.interfacesconfig.interface.DhcpClient) |
ipv6 | object (netgate.interface.interfacesconfig.interface.Ipv6) |
outside | boolean If set true, this interface is used as a NAT outside interface. |
name | string The name of the interface. |
bridge | object (netgate.interface.interfacesconfig.interface.Bridge) |
map | object (netgate.interface.interfacesconfig.interface.Map) |
lldp | object (netgate.interface.interfacesconfig.interface.Lldp) |
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/netgate-interface:interface=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
The list of configured interfaces on the device.
name required | string Id of interface |
netgate.interface.interfacesconfig.Interface to be added to list
mac-address | string The Media Access Control (MAC) address of the interface. |
host-tap-name | string If this interface is associated with a host tap, this field names that host tap interface. |
description | string A textual description of the interface. |
inside | boolean If set true, this interface is used as a NAT inside interface. |
bond | object (netgate.interface.interfacesconfig.interface.Bond) |
enabled | boolean This leaf contains the configured, desired state of the interface. |
mtu | integer <int32> The size, in octets, of the largest packet that the interface will send and receive. |
ipv4 | object (netgate.interface.interfacesconfig.interface.Ipv4) |
access-list | object (netgate.interface.interfacesconfig.interface.AccessList) |
dhcp-client | object (netgate.interface.interfacesconfig.interface.DhcpClient) |
ipv6 | object (netgate.interface.interfacesconfig.interface.Ipv6) |
outside | boolean If set true, this interface is used as a NAT outside interface. |
name | string The name of the interface. |
bridge | object (netgate.interface.interfacesconfig.interface.Bridge) |
map | object (netgate.interface.interfacesconfig.interface.Map) |
lldp | object (netgate.interface.interfacesconfig.interface.Lldp) |
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 to be added or updated
netgate-interface:interface | object (netgate.interface.interfacesconfig.Interface) |
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/netgate-interface:interface=%7Bname%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
output | object (netgate.interface.interfacesconfig.interface.accesslist.Output) |
input | object (netgate.interface.interfacesconfig.interface.accesslist.Input) |
macip | object (netgate.interface.interfacesconfig.interface.accesslist.Macip) |
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 | object (netgate.interface.interfacesconfig.interface.AccessList) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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
acl-list | Array of objects (netgate.interface.interfacesconfig.interface.accesslist.input.AclList) Each ACL rule-set can appear at most once within the input list. |
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 | object (netgate.interface.interfacesconfig.interface.accesslist.Input) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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
sequence | integer <int64> Rules are applied in ascending sequence number. |
acl-name | string This is the name of an ACL rule-set that will be be applied to packets on this interface. |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:input/netgate-interface: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 to list
sequence | integer <int64> Rules are applied in ascending sequence number. |
acl-name | string This is the name of an ACL rule-set that will be be applied to packets on this interface. |
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 to be added or updated
netgate-interface:acl-list | object (netgate.interface.interfacesconfig.interface.accesslist.input.AclList) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:input/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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-name | string This name references at most one MACIP ingress rule-set from the ACL MACIP tables. |
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 | object (netgate.interface.interfacesconfig.interface.accesslist.Macip) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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
acl-list | Array of objects (netgate.interface.interfacesconfig.interface.accesslist.output.AclList) Each ACL rule-set can appear at most once within the output list. |
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 | object (netgate.interface.interfacesconfig.interface.accesslist.Output) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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
sequence | integer <int64> Rules are applied in ascending sequence number. |
acl-name | string This is the name of an ACL rule-set that will be be applied to packets on this interface. |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:output/netgate-interface: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 to list
sequence | integer <int64> Rules are applied in ascending sequence number. |
acl-name | string This is the name of an ACL rule-set that will be be applied to packets on this interface. |
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 to be added or updated
netgate-interface:acl-list | object (netgate.interface.interfacesconfig.interface.accesslist.output.AclList) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:output/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
instance | integer <int64> Bond unique identifier. |
passive | boolean Default: false The slave interface does not initiate the LACP protocol, remote must be active speaker. |
long-timeout | boolean Default: false 90 seconds VS default 3 seconds neighbor timeout. |
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 | object (netgate.interface.interfacesconfig.interface.Bond) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
shg | integer <int32> Split Horizon Group. |
bvi | boolean Set up the interface as a BVI. |
bdi | integer <int64> Bridge Domain Id. |
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 | object (netgate.interface.interfacesconfig.interface.Bridge) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
hostname | string An optional hostname to use. |
enable | boolean Default: false |
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 | object (netgate.interface.interfacesconfig.interface.DhcpClient) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv4 to be added to list
route-table-name | string If present, this is the name of the IPv4 Route Table to which this interface is bound. If not present, the IF uses the Default Route Table. |
address | object (netgate.interface.interfacesconfig.interface.ipv4.Address) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv4 to be added or updated
netgate-interface:ipv4 | object (netgate.interface.interfacesconfig.interface.Ipv4) |
Object created
Object modified
Internal error
Example URL
Parameters for the IPv4 address family.
name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4/netgate-interface:address" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.interface.interfacesconfig.interface.ipv4.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv4.Address to be added to list
ip | Array of strings An IPv4 address on the interface. |
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 | object (netgate.interface.interfacesconfig.interface.ipv4.Address) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4/netgate-interface:address" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
netgate.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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv6 to be added to list
route-table-name | string If present, this is the name of the IPv6 Route Table to which this interface is bound. If not present, the IF uses the Default Route Table. |
address | object (netgate.interface.interfacesconfig.interface.ipv6.Address) |
Object created
Internal error
Object already exists
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.Ipv6 to be added or updated
netgate-interface:ipv6 | object (netgate.interface.interfacesconfig.interface.Ipv6) |
Object created
Object modified
Internal error
Example URL
Parameters for the IPv6 address family.
name required | string Id of interface |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6/netgate-interface:address" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.interface.interfacesconfig.interface.ipv6.Address
name required | string Id of interface |
netgate.interface.interfacesconfig.interface.ipv6.Address to be added to list
ip | Array of strings An IPv6 address on the interface. |
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 | object (netgate.interface.interfacesconfig.interface.ipv6.Address) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6/netgate-interface:address" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
management | object (netgate.interface.interfacesconfig.interface.lldp.Management) |
port-name | string Port name used in LLDP packet. |
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 | object (netgate.interface.interfacesconfig.interface.Lldp) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:lldp/netgate-interface: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
oid | string Management object ID. |
ipv4-address | string IPv4 management address. |
ipv6-address | string IPv6 management address. |
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 | object (netgate.interface.interfacesconfig.interface.lldp.Management) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface:lldp/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
is-translation | boolean If true, this interface is performing MAP-T translations. If false, this interface is performing encapsuations. Valid only when also enabled. |
enabled | boolean If true, MAP-E encapsulation or MAP-T translations are enabled on this interface. |
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 | object (netgate.interface.interfacesconfig.interface.Map) |
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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
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/netgate-interface: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 | Array of objects (netgate.interface.interfacesconfig.loopbacktable.Loopback) Loopback name. |
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 | object (netgate.interface.interfacesconfig.LoopbackTable) |
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/netgate-interface: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
name | string The identifier. A unique name for this Loopback entry. |
mac-address | string The MAC address for the interface. |
description | string A user description of the Loopback. |
instance | integer <int32> Each Loopback creates an interface. The
interface will be named '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/netgate-interface:loopback-table/netgate-interface: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 to list
name | string The identifier. A unique name for this Loopback entry. |
mac-address | string The MAC address for the interface. |
description | string A user description of the Loopback. |
instance | integer <int32> Each Loopback creates an interface. The
interface will be named 'loopback |
Object created
Internal error
Object already exists
Example URL
Loopback name.
name required | string Id of loopback |
netgate.interface.interfacesconfig.loopbacktable.Loopback to be added or updated
netgate-interface:loopback | object (netgate.interface.interfacesconfig.loopbacktable.Loopback) |
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/netgate-interface:loopback-table/netgate-interface: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/netgate-interface: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-entry | Array of objects (netgate.interface.interfacesconfig.memiftable.MemifEntry) A unique 32-bit integer identifying this interface. |
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 | object (netgate.interface.interfacesconfig.MemifTable) |
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/netgate-interface: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
slave | object (netgate.interface.interfacesconfig.memiftable.memifentry.Slave) |
mode | string Should be 'ethernet', 'IP' or 'punt/inject'. |
socket-id | integer <int64> The socket-id of the socket filename to use in establishing a connection. |
mac-address | string The MAC address for the interface. |
buffer-size | integer <int64> The size of the buffer allocated for each ring entry. Default 2048. |
memif-id | integer <int64> This is the user assigned id of the memif interface. |
secret | string The secret is used to match and authenticate the other end of the connection. |
ring-size | integer <int32> The number of entries in the rx/tx rings. The number of entries must be a power of 2 This number is that power of 2, between 8 and 32. The default is 10, for 1024 entries. |
Object created
Internal error
Object already exists
Example URL
A unique 32-bit integer identifying this interface.
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/netgate-interface:memif-table/netgate-interface:memif-entry=%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.
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.MemifEntry to be added to list
slave | object (netgate.interface.interfacesconfig.memiftable.memifentry.Slave) |
mode | string Should be 'ethernet', 'IP' or 'punt/inject'. |
socket-id | integer <int64> The socket-id of the socket filename to use in establishing a connection. |
mac-address | string The MAC address for the interface. |
buffer-size | integer <int64> The size of the buffer allocated for each ring entry. Default 2048. |
memif-id | integer <int64> This is the user assigned id of the memif interface. |
secret | string The secret is used to match and authenticate the other end of the connection. |
ring-size | integer <int32> The number of entries in the rx/tx rings. The number of entries must be a power of 2 This number is that power of 2, between 8 and 32. The default is 10, for 1024 entries. |
Object created
Internal error
Object already exists
Example URL
A unique 32-bit integer identifying this interface.
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.MemifEntry to be added or updated
netgate-interface:memif-entry | object (netgate.interface.interfacesconfig.memiftable.MemifEntry) |
Object created
Object modified
Internal error
Example URL
A unique 32-bit integer identifying this interface.
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/netgate-interface:memif-table/netgate-interface:memif-entry=%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.Slave
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Slave
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/netgate-interface:memif-table/netgate-interface:memif-entry=%7Bmemif-id%7D/netgate-interface:slave" 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.Slave
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Slave to be added to list
tx-queues | integer <int32> The number of slave tx queues. |
rx-queues | integer <int32> The number of slave rx queues. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.memiftable.memifentry.Slave
memif-id required | integer <int64> Id of memif-entry |
netgate.interface.interfacesconfig.memiftable.memifentry.Slave to be added or updated
netgate-interface:slave | object (netgate.interface.interfacesconfig.memiftable.memifentry.Slave) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.memiftable.memifentry.Slave
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/netgate-interface:memif-table/netgate-interface:memif-entry=%7Bmemif-id%7D/netgate-interface:slave" 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/netgate-interface: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 | Array of objects (netgate.interface.interfacesconfig.sockettable.Socket) A unique 32-bit integer identifying this socket filename. |
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 | object (netgate.interface.interfacesconfig.SocketTable) |
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/netgate-interface: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
filename | string The path to a socket file used for establishing memif connections. A socket can be used for either master or slave interfaces, but not both. A socket can have more than one master using it, or it can have more than one slave using it. |
id | integer <int64> This is the user assigned id of the socket filename. |
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/netgate-interface:socket-table/netgate-interface: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 to list
filename | string The path to a socket file used for establishing memif connections. A socket can be used for either master or slave interfaces, but not both. A socket can have more than one master using it, or it can have more than one slave using it. |
id | integer <int64> This is the user assigned id of the socket filename. |
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 to be added or updated
netgate-interface:socket | object (netgate.interface.interfacesconfig.sockettable.Socket) |
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/netgate-interface:socket-table/netgate-interface: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/netgate-interface: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
subif-entry | Array of objects (netgate.interface.interfacesconfig.subinterfaces.SubifEntry) Each subinterface entry represents a VLAN. |
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 | object (netgate.interface.interfacesconfig.Subinterfaces) |
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/netgate-interface: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
subid | integer <int64> The subinterface id. It is often also the (outer) VLAN tag value, though they can be different. |
if-name | string The interface on which this subinterface exists. |
vlan | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan) |
vlan-tag-rewrite | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite) |
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/netgate-interface:subinterfaces/netgate-interface: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 to list
subid | integer <int64> The subinterface id. It is often also the (outer) VLAN tag value, though they can be different. |
if-name | string The interface on which this subinterface exists. |
vlan | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan) |
vlan-tag-rewrite | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite) |
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 to be added or updated
netgate-interface:subif-entry | object (netgate.interface.interfacesconfig.subinterfaces.SubifEntry) |
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/netgate-interface:subinterfaces/netgate-interface: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
returns netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-interface:interfaces-config/netgate-interface:subinterfaces/netgate-interface:subif-entry=%7Bif-name%7D,%7Bsubid%7D/netgate-interface: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.subinterfaces.subifentry.VlanTagRewrite
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite to be added to list
push-dot1q | boolean If true the first pushed tag is of type dot1q, otherwise it will be of type dot1ad. |
tag1 | integer <int64> The first pushed tag value. |
operation | string (netgate.interface.IntfTagRewriteOp) Enum: "disable" "pop-1" "pop-2" "push-1" "push-2" "translate-1-1" "translate-1-2" "translate-2-1" "translate-2-2" |
tag2 | integer <int64> The second pushed tag value. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite
if-name required | string Id of subif-entry |
subid required | integer <int64> Id of subif-entry |
netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite to be added or updated
netgate-interface:vlan-tag-rewrite | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite) |
Object created
Object modified
Internal error
Example URL
removes netgate.interface.interfacesconfig.subinterfaces.subifentry.VlanTagRewrite
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/netgate-interface:subinterfaces/netgate-interface:subif-entry=%7Bif-name%7D,%7Bsubid%7D/netgate-interface: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
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/netgate-interface:subinterfaces/netgate-interface:subif-entry=%7Bif-name%7D,%7Bsubid%7D/netgate-interface: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
exact-match | boolean By default matching is non-exact. If this value is true, matching is exact. |
default-subif | boolean The default subinterface is associated with a packet that did not match any other configured subinterface on this interface. |
inner-vlan-id | string The inner vlan tag id. It can be an integer between 1 and 4095 inclusive, or the word 'any'. |
dot1ad | boolean By default the outer tag is dot1q. If this value is true, it is instead dot1ad. |
outer-vlan-id | string The outer vlan tag id. It can be an integer between 1 and 4095 inclusive, or the word 'any'. |
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 | object (netgate.interface.interfacesconfig.subinterfaces.subifentry.Vlan) |
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/netgate-interface:subinterfaces/netgate-interface:subif-entry=%7Bif-name%7D,%7Bsubid%7D/netgate-interface: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/netgate-interface: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 | Array of objects (netgate.interface.interfacesconfig.taptable.Tap) Unique identifing host tap name. |
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 | object (netgate.interface.interfacesconfig.TapTable) |
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/netgate-interface: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
mac-address | string The MAC address of the interface. |
instance | integer <int64> The tap instance number. |
tx-ring-size | integer <int32> A power of 2 between 0 and 15 inclusive yielding a transmit ring size 32 to 32768 entries. The default is 8 (256 entries). |
host-mac-address | string The MAC address of the host tap interface. |
host-name | string The name of the tap on the host system. |
host-namespace | string The host namespace in which the tap will be made. |
host-ipv6-prefix | string The IPv6 prefix on the interface. |
host-ipv4-gateway | string The IPv4 gateway address on the interface. |
host-ipv4-prefix | string The IPv4 prefix on the interface. |
rx-ring-size | integer <int32> A power of 2 between 0 and 15 inclusive yielding a receive ring size 32 to 32768 entries. The default is 8 (256 entries). |
host-ipv6-gateway | string The IPv6 gateway address on the interface. |
host-bridge | string The host bridge to which the tap will be attached. |
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/netgate-interface:tap-table/netgate-interface: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 to list
mac-address | string The MAC address of the interface. |
instance | integer <int64> The tap instance number. |
tx-ring-size | integer <int32> A power of 2 between 0 and 15 inclusive yielding a transmit ring size 32 to 32768 entries. The default is 8 (256 entries). |
host-mac-address | string The MAC address of the host tap interface. |
host-name | string The name of the tap on the host system. |
host-namespace | string The host namespace in which the tap will be made. |
host-ipv6-prefix | string The IPv6 prefix on the interface. |
host-ipv4-gateway | string The IPv4 gateway address on the interface. |
host-ipv4-prefix | string The IPv4 prefix on the interface. |
rx-ring-size | integer <int32> A power of 2 between 0 and 15 inclusive yielding a receive ring size 32 to 32768 entries. The default is 8 (256 entries). |
host-ipv6-gateway | string The IPv6 gateway address on the interface. |
host-bridge | string The host bridge to which the tap will be attached. |
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 to be added or updated
netgate-interface:tap | object (netgate.interface.interfacesconfig.taptable.Tap) |
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/netgate-interface:tap-table/netgate-interface: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/netgate-interface: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/netgate-interface:bond-table/netgate-interface: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/netgate-interface:bond-table/netgate-interface:bond=%7Binstance%7D/netgate-interface: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/netgate-interface:bond-table/netgate-interface:bond=%7Binstance%7D/netgate-interface:slave-if-table/netgate-interface: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/netgate-interface: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/netgate-interface:bridge-table/netgate-interface: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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface: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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface:bridge-arp-table/netgate-interface: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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface: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/netgate-interface:bridge-table/netgate-interface:bridge-entry=%7Bbdi%7D/netgate-interface:domain-if-members/netgate-interface: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/netgate-interface:interface=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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 |
acl-name required | string 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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:input/netgate-interface: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
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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface: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 |
acl-name required | string 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/netgate-interface:interface=%7Bname%7D/netgate-interface:access-list/netgate-interface:output/netgate-interface: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
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv4/netgate-interface:address" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.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/netgate-interface:interface=%7Bname%7D/netgate-interface:ipv6/netgate-interface:address" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
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/netgate-interface:interface=%7Bname%7D/netgate-interface: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/netgate-interface:interface=%7Bname%7D/netgate-interface:slave-if-table/netgate-interface: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
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/netgate-interface: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/netgate-interface:lacp-table/netgate-interface: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/netgate-interface:lacp-table/netgate-interface:lacp-entry=%7Bslave-if-name%7D/netgate-interface: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/netgate-interface:lacp-table/netgate-interface:lacp-entry=%7Bslave-if-name%7D/netgate-interface: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/netgate-interface: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/netgate-interface:loopback-table/netgate-interface: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/netgate-interface: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.
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/netgate-interface:memif-table/netgate-interface:memif-entry=%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/netgate-interface: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/netgate-interface:socket-table/netgate-interface: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/netgate-interface: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/netgate-interface:tap-table/netgate-interface: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
creates 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)) }