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
Example URL
Table of filters that select traced packets.
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/filters" 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
An unordered list of named filters.
netgate.packet.trace.packettraceconfig.filters.Filter to be added to list
filter | object (netgate.packet.trace.packettraceconfig.filters.Filter) |
Object created
Internal error
Object already exists
Example URL
An unordered list of named filters.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.Filter
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%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
An unordered list of named filters.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.Filter to be added or updated
netgate-packet-trace:filter-wrapper | object (netgate.packet.trace.packettraceconfig.filters.FilterWrapper) |
Object created
Object modified
Internal error
Example URL
An unordered list of named filters.
name required | string Id of filter |
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/filters/filter=%7Bname%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
Trace filter match values.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.Match
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match" 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
Trace filter match values.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.Match to be added to list
match | object (netgate.packet.trace.packettraceconfig.filters.filter.Match) |
Object created
Internal error
Object already exists
Example URL
Trace filter match values.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.Match to be added or updated
netgate-packet-trace:match-wrapper | object (netgate.packet.trace.packettraceconfig.filters.filter.MatchWrapper) |
Object created
Object modified
Internal error
Example URL
Trace filter match values.
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match" 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
L2 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L2
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l2" 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
L2 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L2 to be added to list
l2 | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L2) |
Object created
Internal error
Object already exists
Example URL
L2 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L2 to be added or updated
netgate-packet-trace:l2-wrapper | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L2Wrapper) |
Object created
Object modified
Internal error
Example URL
L2 fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l2" 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
L2 ethernet fields
name required | string Id of filter |
netgate.packet.fields.L2Ethernet
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l2/ethernet" 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
L2 ethernet fields
name required | string Id of filter |
netgate.packet.fields.L2Ethernet to be added to list
ethernet | object (netgate.packet.fields.L2Ethernet) |
Object created
Internal error
Object already exists
Example URL
L2 ethernet fields
name required | string Id of filter |
netgate.packet.fields.L2Ethernet to be added or updated
netgate-packet-trace:l2-ethernet-wrapper | object (netgate.packet.fields.L2EthernetWrapper) |
Object created
Object modified
Internal error
Example URL
L2 ethernet fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l2/ethernet" 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
returns netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
netgate.packet.fields.l2ethernet.VlanDot1q
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l2/ethernet/vlan-dot1q" 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
creates netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
netgate.packet.fields.l2ethernet.VlanDot1q to be added to list
vlan-dot1q | object (netgate.packet.fields.l2ethernet.VlanDot1q) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
netgate.packet.fields.l2ethernet.VlanDot1q to be added or updated
netgate-packet-trace:vlan-dot1q-wrapper | object (netgate.packet.fields.l2ethernet.VlanDot1qWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l2/ethernet/vlan-dot1q" 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
returns netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l2/ethernet/vlan-dot1q/vlan-dot1ad" 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
creates netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad to be added to list
vlan-dot1ad | object (netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad) |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad to be added or updated
netgate-packet-trace:vlan-dot1ad-wrapper | object (netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1adWrapper) |
Object created
Object modified
Internal error
Example URL
removes netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l2/ethernet/vlan-dot1q/vlan-dot1ad" 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
L3 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L3
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l3" 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
L3 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L3 to be added to list
l3 | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L3) |
Object created
Internal error
Object already exists
Example URL
L3 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L3 to be added or updated
netgate-packet-trace:l3-wrapper | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L3Wrapper) |
Object created
Object modified
Internal error
Example URL
L3 fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l3" 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
L3 IPv4 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l3/ipv4" 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
L3 IPv4 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip4 to be added to list
ipv4 | object (netgate.packet.fields.L3Ip4) |
Object created
Internal error
Object already exists
Example URL
L3 IPv4 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip4 to be added or updated
netgate-packet-trace:l3-ip4-wrapper | object (netgate.packet.fields.L3Ip4Wrapper) |
Object created
Object modified
Internal error
Example URL
L3 IPv4 fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l3/ipv4" 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
L3 IPv6 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip6
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l3/ipv6" 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
L3 IPv6 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip6 to be added to list
ipv6 | object (netgate.packet.fields.L3Ip6) |
Object created
Internal error
Object already exists
Example URL
L3 IPv6 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip6 to be added or updated
netgate-packet-trace:l3-ip6-wrapper | object (netgate.packet.fields.L3Ip6Wrapper) |
Object created
Object modified
Internal error
Example URL
L3 IPv6 fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l3/ipv6" 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
L4 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l4" 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
L4 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L4 to be added to list
l4 | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L4) |
Object created
Internal error
Object already exists
Example URL
L4 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L4 to be added or updated
netgate-packet-trace:l4-wrapper | object (netgate.packet.trace.packettraceconfig.filters.filter.match.L4Wrapper) |
Object created
Object modified
Internal error
Example URL
L4 fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l4" 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
L4 TCP fields
name required | string Id of filter |
netgate.packet.fields.L4Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l4/tcp" 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
L4 TCP fields
name required | string Id of filter |
netgate.packet.fields.L4Tcp to be added to list
tcp | object (netgate.packet.fields.L4Tcp) |
Object created
Internal error
Object already exists
Example URL
L4 TCP fields
name required | string Id of filter |
netgate.packet.fields.L4Tcp to be added or updated
netgate-packet-trace:l4-tcp-wrapper | object (netgate.packet.fields.L4TcpWrapper) |
Object created
Object modified
Internal error
Example URL
L4 TCP fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l4/tcp" 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
L4 UDP fields
name required | string Id of filter |
netgate.packet.fields.L4Udp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-packet-trace:packet-trace-config/filters/filter=%7Bname%7D/match/l4/udp" 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
L4 UDP fields
name required | string Id of filter |
netgate.packet.fields.L4Udp to be added to list
udp | object (netgate.packet.fields.L4Udp) |
Object created
Internal error
Object already exists
Example URL
L4 UDP fields
name required | string Id of filter |
netgate.packet.fields.L4Udp to be added or updated
netgate-packet-trace:l4-udp-wrapper | object (netgate.packet.fields.L4UdpWrapper) |
Object created
Object modified
Internal error
Example URL
L4 UDP fields
name required | string Id of filter |
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/filters/filter=%7Bname%7D/match/l4/udp" 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)) }