This YANG module provides a Netgate-defined data-model for SPAN data.
Copyright 2018-2019 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
span-table | object (netgate.span.spanconfig.SpanTable) |
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 | object (netgate.span.SpanConfig) |
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/netgate-span: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
source | Array of objects (netgate.span.spanconfig.spantable.Source) Mirrored source interface. |
Object created
Internal error
Object already exists
Example URL
SPAN table.
netgate.span.spanconfig.SpanTable to be added or updated
netgate-span:span-table | object (netgate.span.spanconfig.SpanTable) |
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/netgate-span: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
if-name-src | string The source interface that will be mirrored. |
destination-table | object (netgate.span.spanconfig.spantable.source.DestinationTable) |
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/netgate-span:span-table/netgate-span: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 to list
if-name-src | string The source interface that will be mirrored. |
destination-table | object (netgate.span.spanconfig.spantable.source.DestinationTable) |
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 to be added or updated
netgate-span:source | object (netgate.span.spanconfig.spantable.Source) |
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/netgate-span:span-table/netgate-span: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/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span: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 | Array of objects (netgate.span.spanconfig.spantable.source.destinationtable.Destination) The destination interface. |
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 | object (netgate.span.spanconfig.spantable.source.DestinationTable) |
Object created
Object modified
Internal error
Example URL
The set of destinations for one source.
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/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span:destination-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
The destination interface.
if-name-src required | string Id of source |
netgate.span.spanconfig.spantable.source.destinationtable.Destination to be added to list
if-name-dst | string The destination interface receiving mirrored packets. |
state | object (netgate.span.SpanState) |
layer | string (netgate.span.SpanLayer) Enum: "hw" "l2" |
Object created
Internal error
Object already exists
Example URL
The destination interface.
if-name-src required | string Id of source |
if-name-dst required | string Id of destination |
netgate.span.spanconfig.spantable.source.destinationtable.Destination
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span:destination-table/netgate-span:destination=%7Bif-name-dst%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 destination interface.
if-name-src required | string Id of source |
if-name-dst required | string Id of destination |
netgate.span.spanconfig.spantable.source.destinationtable.Destination to be added to list
if-name-dst | string The destination interface receiving mirrored packets. |
state | object (netgate.span.SpanState) |
layer | string (netgate.span.SpanLayer) Enum: "hw" "l2" |
Object created
Internal error
Object already exists
Example URL
The destination interface.
if-name-src required | string Id of source |
if-name-dst required | string Id of destination |
netgate.span.spanconfig.spantable.source.destinationtable.Destination to be added or updated
netgate-span:destination | object (netgate.span.spanconfig.spantable.source.destinationtable.Destination) |
Object created
Object modified
Internal error
Example URL
The destination interface.
if-name-src required | string Id of source |
if-name-dst required | string Id of destination |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-config/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span:destination-table/netgate-span:destination=%7Bif-name-dst%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
Switched Port Analyzer (SPAN) state.
netgate.span.SpanState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-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
SPAN table.
netgate.span.spanstate.SpanTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-state/netgate-span: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
Mirrored source interface.
if-name-src required | string Id of source |
netgate.span.spanstate.spantable.Source
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-state/netgate-span:span-table/netgate-span: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
The set of destinations for one source.
if-name-src required | string Id of source |
netgate.span.spanstate.spantable.source.DestinationTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-state/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span: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 destination interface.
if-name-src required | string Id of source |
if-name-dst required | string Id of destination |
netgate.span.spanstate.spantable.source.destinationtable.Destination
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-span:span-state/netgate-span:span-table/netgate-span:source=%7Bif-name-src%7D/netgate-span:destination-table/netgate-span:destination=%7Bif-name-dst%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)) }