This YANG module provides a Netgate-defined data-model for Access Control Lists.
Copyright 2017-2019 Rubicon Communications, LLC.
Example URL
Access Control Lists (ACL) data needed to support VPP.
netgate.acl.AclConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-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
Access Control Lists (ACL) data needed to support VPP.
netgate.acl.AclConfig to be added to list
macip-table | object (netgate.acl.aclconfig.MacipTable) |
acl-table | object (netgate.acl.aclconfig.AclTable) |
Object created
Internal error
Object already exists
Example URL
Access Control Lists (ACL) data needed to support VPP.
netgate.acl.AclConfig to be added or updated
netgate-acl:acl-config | object (netgate.acl.AclConfig) |
Object created
Object modified
Internal error
Example URL
Access Control Lists (ACL) data needed to support VPP.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-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
Table of ACL lists, indexed by name. Each entry contains a set of ACL Rules ordered by sequence number.
netgate.acl.aclconfig.AclTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-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
Table of ACL lists, indexed by name. Each entry contains a set of ACL Rules ordered by sequence number.
netgate.acl.aclconfig.AclTable to be added to list
acl-list | Array of objects (netgate.acl.aclconfig.acltable.AclList) ACL list name. |
Object created
Internal error
Object already exists
Example URL
Table of ACL lists, indexed by name. Each entry contains a set of ACL Rules ordered by sequence number.
netgate.acl.aclconfig.AclTable to be added or updated
netgate-acl:acl-table | object (netgate.acl.aclconfig.AclTable) |
Object created
Object modified
Internal error
Example URL
Table of ACL lists, indexed by name. Each entry contains a set of ACL Rules ordered by sequence number.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-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
ACL list name.
netgate.acl.aclconfig.acltable.AclList to be added to list
acl-name | string The ACL name as supplied by the developer. It is a unique name used to identify this set of ACL Rules. |
acl-rules | object (netgate.acl.aclconfig.acltable.acllist.AclRules) |
acl-description | string A text description for the ACL. |
Object created
Internal error
Object already exists
Example URL
ACL list name.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-table/netgate-acl: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
ACL list name.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.AclList to be added to list
acl-name | string The ACL name as supplied by the developer. It is a unique name used to identify this set of ACL Rules. |
acl-rules | object (netgate.acl.aclconfig.acltable.acllist.AclRules) |
acl-description | string A text description for the ACL. |
Object created
Internal error
Object already exists
Example URL
ACL list name.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.AclList to be added or updated
netgate-acl:acl-list | object (netgate.acl.aclconfig.acltable.AclList) |
Object created
Object modified
Internal error
Example URL
ACL list name.
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-acl:acl-config/netgate-acl:acl-table/netgate-acl: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
ACL Rule Table ordered by sequence number.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.acllist.AclRules
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules" 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
ACL Rule Table ordered by sequence number.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.acllist.AclRules to be added to list
acl-rule | Array of objects (netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule) A List of ACL Rules. |
Object created
Internal error
Object already exists
Example URL
ACL Rule Table ordered by sequence number.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.acllist.AclRules to be added or updated
netgate-acl:acl-rules | object (netgate.acl.aclconfig.acltable.acllist.AclRules) |
Object created
Object modified
Internal error
Example URL
ACL Rule Table ordered by sequence number.
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-acl:acl-config/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules" 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 List of ACL Rules.
acl-name required | string Id of acl-list |
netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule to be added to list
src-last-port | integer <int32> The last source port in a range. |
icmp-first-code | integer <int32> The first ICMP code in a range. |
icmp-last-code | integer <int32> The last ICMP code in a range. |
acl-rule-description | string A text description for the ACL rule. |
icmp-first-type | integer <int32> The first ICMP type in a range. |
tcp-flags-mask | integer <int32> The TCP flags mask. |
src-first-port | integer <int32> The first source port in a range. |
sequence | integer <int64> Rules are executed in increasing sequence number. |
protocol | string (netgate.acl.AclProtocol) Enum: "tcp" "udp" "icmp" |
dst-last-port | integer <int32> The last destination port in a range. |
dst-ip-prefix | string The IPv4 or IPv6 destination prefix. |
action | string (netgate.acl.AclRuleAction) Enum: "deny" "permit" "reflect" |
tcp-flags-value | integer <int32> The TCP flags value. |
src-ip-prefix | string The IPv4 or IPv6 source prefix. |
icmp-last-type | integer <int32> The last ICMP type in a range. |
dst-first-port | integer <int32> The first destination port in a range. |
Object created
Internal error
Object already exists
Example URL
A List of ACL Rules.
acl-name required | string Id of acl-list |
sequence required | integer <int64> Id of acl-rule |
netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules/netgate-acl:acl-rule=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A List of ACL Rules.
acl-name required | string Id of acl-list |
sequence required | integer <int64> Id of acl-rule |
netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule to be added to list
src-last-port | integer <int32> The last source port in a range. |
icmp-first-code | integer <int32> The first ICMP code in a range. |
icmp-last-code | integer <int32> The last ICMP code in a range. |
acl-rule-description | string A text description for the ACL rule. |
icmp-first-type | integer <int32> The first ICMP type in a range. |
tcp-flags-mask | integer <int32> The TCP flags mask. |
src-first-port | integer <int32> The first source port in a range. |
sequence | integer <int64> Rules are executed in increasing sequence number. |
protocol | string (netgate.acl.AclProtocol) Enum: "tcp" "udp" "icmp" |
dst-last-port | integer <int32> The last destination port in a range. |
dst-ip-prefix | string The IPv4 or IPv6 destination prefix. |
action | string (netgate.acl.AclRuleAction) Enum: "deny" "permit" "reflect" |
tcp-flags-value | integer <int32> The TCP flags value. |
src-ip-prefix | string The IPv4 or IPv6 source prefix. |
icmp-last-type | integer <int32> The last ICMP type in a range. |
dst-first-port | integer <int32> The first destination port in a range. |
Object created
Internal error
Object already exists
Example URL
A List of ACL Rules.
acl-name required | string Id of acl-list |
sequence required | integer <int64> Id of acl-rule |
netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule to be added or updated
netgate-acl:acl-rule | object (netgate.acl.aclconfig.acltable.acllist.aclrules.AclRule) |
Object created
Object modified
Internal error
Example URL
A List of ACL Rules.
acl-name required | string Id of acl-list |
sequence required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules/netgate-acl:acl-rule=%7Bsequence%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
Table of MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
netgate.acl.aclconfig.MacipTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-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
Table of MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
netgate.acl.aclconfig.MacipTable to be added to list
macip-list | Array of objects (netgate.acl.aclconfig.maciptable.MacipList) MACIP list name. |
Object created
Internal error
Object already exists
Example URL
Table of MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
netgate.acl.aclconfig.MacipTable to be added or updated
netgate-acl:macip-table | object (netgate.acl.aclconfig.MacipTable) |
Object created
Object modified
Internal error
Example URL
Table of MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-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
MACIP list name.
netgate.acl.aclconfig.maciptable.MacipList to be added to list
macip-name | string The MACIP name as supplied by the developer. It is a unique name used to identify this set of MACIP Rules. |
macip-rules | object (netgate.acl.aclconfig.maciptable.maciplist.MacipRules) |
Object created
Internal error
Object already exists
Example URL
MACIP list name.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.MacipList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-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
MACIP list name.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.MacipList to be added to list
macip-name | string The MACIP name as supplied by the developer. It is a unique name used to identify this set of MACIP Rules. |
macip-rules | object (netgate.acl.aclconfig.maciptable.maciplist.MacipRules) |
Object created
Internal error
Object already exists
Example URL
MACIP list name.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.MacipList to be added or updated
netgate-acl:macip-list | object (netgate.acl.aclconfig.maciptable.MacipList) |
Object created
Object modified
Internal error
Example URL
MACIP list name.
macip-name required | string Id of macip-list |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-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
MACIP Rule Table ordered by sequence number.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.maciplist.MacipRules
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules" 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
MACIP Rule Table ordered by sequence number.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.maciplist.MacipRules to be added to list
macip-rule | Array of objects (netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule) A List of MACIP Rules. |
Object created
Internal error
Object already exists
Example URL
MACIP Rule Table ordered by sequence number.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.maciplist.MacipRules to be added or updated
netgate-acl:macip-rules | object (netgate.acl.aclconfig.maciptable.maciplist.MacipRules) |
Object created
Object modified
Internal error
Example URL
MACIP Rule Table ordered by sequence number.
macip-name required | string Id of macip-list |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules" 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 List of MACIP Rules.
macip-name required | string Id of macip-list |
netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule to be added to list
mac-address | string The L2 MAC address to be matched. |
sequence | integer <int64> Rules are executed in increasing sequence number. |
action | string (netgate.acl.MacipRuleAction) Enum: "deny" "permit" |
ip-prefix | string The IPv4 or IPv6 source prefix. |
mac-mask | string The L2 MAC mask ANDed with packet MAC addresses. |
Object created
Internal error
Object already exists
Example URL
A List of MACIP Rules.
macip-name required | string Id of macip-list |
sequence required | integer <int64> Id of macip-rule |
netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules/netgate-acl:macip-rule=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
A List of MACIP Rules.
macip-name required | string Id of macip-list |
sequence required | integer <int64> Id of macip-rule |
netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule to be added to list
mac-address | string The L2 MAC address to be matched. |
sequence | integer <int64> Rules are executed in increasing sequence number. |
action | string (netgate.acl.MacipRuleAction) Enum: "deny" "permit" |
ip-prefix | string The IPv4 or IPv6 source prefix. |
mac-mask | string The L2 MAC mask ANDed with packet MAC addresses. |
Object created
Internal error
Object already exists
Example URL
A List of MACIP Rules.
macip-name required | string Id of macip-list |
sequence required | integer <int64> Id of macip-rule |
netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule to be added or updated
netgate-acl:macip-rule | object (netgate.acl.aclconfig.maciptable.maciplist.maciprules.MacipRule) |
Object created
Object modified
Internal error
Example URL
A List of MACIP Rules.
macip-name required | string Id of macip-list |
sequence required | integer <int64> Id of macip-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-config/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules/netgate-acl:macip-rule=%7Bsequence%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
Access Control Lists (ACL) state data.
netgate.acl.AclState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-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
Table of ACL lists, indexed by name. Each entry contains a set of ACL Rules ordered by sequence number.
netgate.acl.aclstate.AclTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:acl-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
ACL list name.
acl-name required | string Id of acl-list |
netgate.acl.aclstate.acltable.AclList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:acl-table/netgate-acl: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
ACL Rule Table ordered by sequence number.
acl-name required | string Id of acl-list |
netgate.acl.aclstate.acltable.acllist.AclRules
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules" 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 List of ACL Rules.
acl-name required | string Id of acl-list |
sequence required | integer <int64> Id of acl-rule |
netgate.acl.aclstate.acltable.acllist.aclrules.AclRule
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:acl-table/netgate-acl:acl-list=%7Bacl-name%7D/netgate-acl:acl-rules/netgate-acl:acl-rule=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Table of MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
netgate.acl.aclstate.MacipTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:macip-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
MACIP list name.
macip-name required | string Id of macip-list |
netgate.acl.aclstate.maciptable.MacipList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-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
MACIP Rule Table ordered by sequence number.
macip-name required | string Id of macip-list |
netgate.acl.aclstate.maciptable.maciplist.MacipRules
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules" 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 List of MACIP Rules.
macip-name required | string Id of macip-list |
sequence required | integer <int64> Id of macip-rule |
netgate.acl.aclstate.maciptable.maciplist.maciprules.MacipRule
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-acl:acl-state/netgate-acl:macip-table/netgate-acl:macip-list=%7Bmacip-name%7D/netgate-acl:macip-rules/netgate-acl:macip-rule=%7Bsequence%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }