This YANG module provides a Netgate-defined data-model for tracing packets using Classifier filters.
Copyright 2020 Rubicon Communications, LLC.
Example URL
Configuration for packet tracing filters.
netgate.packet.trace.PacketTraceConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-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
Configuration for packet tracing filters.
netgate.packet.trace.PacketTraceConfig to be added to list
netgate-packet-trace:packet-trace-config | object (netgate.packet.trace.PacketTraceConfig) |
Object created
Internal error
Object already exists
Example URL
Configuration for packet tracing filters.
netgate.packet.trace.PacketTraceConfig to be added or updated
netgate-packet-trace:packet-trace-config-wrapper | object (netgate.packet.trace.PacketTraceConfigWrapper) |
Object created
Object modified
Internal error
Example URL
Configuration for packet tracing filters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-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 filters that select traced packets.
netgate.packet.trace.packettraceconfig.Filters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters" 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 filters that select traced packets.
netgate.packet.trace.packettraceconfig.Filters to be added to list
filters | object (netgate.packet.trace.packettraceconfig.Filters) |
Object created
Internal error
Object already exists
Example URL
Table of filters that select traced packets.
netgate.packet.trace.packettraceconfig.Filters to be added or updated
netgate-packet-trace:filters-wrapper | object (netgate.packet.trace.packettraceconfig.FiltersWrapper) |
Object created
Object modified
Internal error