This YANG module provides a Netgate-defined data-model for Access Control Lists.
Copyright 2017-2020 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
netgate-acl:acl-config | object (netgate.acl.AclConfig) |
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-wrapper | object (netgate.acl.AclConfigWrapper) |
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/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-table | object (netgate.acl.aclconfig.AclTable) |
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-wrapper | object (netgate.acl.aclconfig.AclTableWrapper) |
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/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-list | object (netgate.acl.aclconfig.acltable.AclList) |
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/acl-table/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 or updated
netgate-acl:acl-list-wrapper | object (netgate.acl.aclconfig.acltable.AclListWrapper) |
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/acl-table/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)) }