This YANG module provides a Netgate-defined data-model for MACIP Access Control Lists.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
MACIP ACL configuration in VPP.
netgate.macip.MacipConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-macip:macip-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
MACIP ACL configuration in VPP.
netgate.macip.MacipConfig to be added to list
netgate-macip:macip-config | object (netgate.macip.MacipConfig) |
Object created
Internal error
Object already exists
Example URL
MACIP ACL configuration in VPP.
netgate.macip.MacipConfig to be added or updated
netgate-macip:macip-config-wrapper | object (netgate.macip.MacipConfigWrapper) |
Object created
Object modified
Internal error
Example URL
MACIP ACL configuration in VPP.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-macip:macip-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 MACIP lists, indexed by name. Each entry contains a set of MACIP Rules ordered by sequence number.
netgate.macip.macipconfig.MacipTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-macip:macip-config/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.macip.macipconfig.MacipTable to be added to list
macip-table | object (netgate.macip.macipconfig.MacipTable) |
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.macip.macipconfig.MacipTable to be added or updated
netgate-macip:macip-table-wrapper | object (netgate.macip.macipconfig.MacipTableWrapper) |
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-macip:macip-config/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.macip.macipconfig.maciptable.MacipList to be added to list
macip-list | object (netgate.macip.macipconfig.maciptable.MacipList) |
Object created
Internal error
Object already exists
Example URL
MACIP list name.
macip-name required | string Id of macip-list |
netgate.macip.macipconfig.maciptable.MacipList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-macip:macip-config/macip-table/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.macip.macipconfig.maciptable.MacipList to be added or updated
netgate-macip:macip-list-wrapper | object (netgate.macip.macipconfig.maciptable.MacipListWrapper) |
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-macip:macip-config/macip-table/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.macip.macipconfig.maciptable.maciplist.MacipRules
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-macip:macip-config/macip-table/macip-list=%7Bmacip-name%7D/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.macip.macipconfig.maciptable.maciplist.MacipRules to be added to list
macip-rules | object (netgate.macip.macipconfig.maciptable.maciplist.MacipRules) |
Object created
Internal error
Object already exists