This YANG module provides a Netgate-defined data-model for SPAN data.
Copyright 2018-2020 Rubicon Communications, LLC.
Example URL
Switched Port Analyzer (SPAN) configuration.
netgate.span.SpanConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-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
Switched Port Analyzer (SPAN) configuration.
netgate.span.SpanConfig to be added to list
netgate-span:span-config | object (netgate.span.SpanConfig) |
Object created
Internal error
Object already exists
Example URL
Switched Port Analyzer (SPAN) configuration.
netgate.span.SpanConfig to be added or updated
netgate-span:span-config-wrapper | object (netgate.span.SpanConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Switched Port Analyzer (SPAN) configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-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
SPAN table.
netgate.span.spanconfig.SpanTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/span-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
SPAN table.
netgate.span.spanconfig.SpanTable to be added to list
span-table | object (netgate.span.spanconfig.SpanTable) |
Object created
Internal error
Object already exists
Example URL
SPAN table.
netgate.span.spanconfig.SpanTable to be added or updated
netgate-span:span-table-wrapper | object (netgate.span.spanconfig.SpanTableWrapper) |
Object created
Object modified
Internal error
Example URL
SPAN table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/span-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
Mirrored source interface.
netgate.span.spanconfig.spantable.Source to be added to list
source | object (netgate.span.spanconfig.spantable.Source) |
Object created
Internal error
Object already exists
Example URL
Mirrored source interface.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.Source
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/span-table/source=%7Bif-name-src%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
Mirrored source interface.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.Source to be added or updated
netgate-span:source-wrapper | object (netgate.span.spanconfig.spantable.SourceWrapper) |
Object created
Object modified
Internal error
Example URL
Mirrored source interface.
if-name-src required | string Id of source |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/span-table/source=%7Bif-name-src%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 set of destinations for one source.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.source.DestinationTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/span-table/source=%7Bif-name-src%7D/destination-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
The set of destinations for one source.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.source.DestinationTable to be added to list
destination-table | object (netgate.span.spanconfig.spantable.source.DestinationTable) |
Object created
Internal error
Object already exists
Example URL
The set of destinations for one source.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.source.DestinationTable to be added or updated
netgate-span:destination-table-wrapper | object (netgate.span.spanconfig.spantable.source.DestinationTableWrapper) |
Object created
Object modified
Internal error