This YANG module provides a Netgate-defined data-model for tracing packets using Classifier filters.
Copyright 2020-2022, 2024, 2025 Rubicon Communications, LLC.
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)) }
{- "netgate-packet-trace:packet-trace-config": {
- "netgate-packet-trace:filters": {
- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": null,
- "netgate-packet-trace:tag": null
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
}
}
Configuration for packet tracing filters.
netgate.packet.trace.PacketTraceConfig to be added to list
object (netgate.packet.trace.packettraceconfig.Filters) Table of filters that select traced packets. |
{- "netgate-packet-trace:filters": {
- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
}
Configuration for packet tracing filters.
netgate.packet.trace.PacketTraceConfig to be added or updated
object (netgate.packet.trace.PacketTraceConfig) Configuration for packet tracing filters. |
{- "netgate-packet-trace:packet-trace-config": {
- "netgate-packet-trace:filters": {
- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": null,
- "netgate-packet-trace:tag": null
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
}
}
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)) }
Table of filters that select traced packets.
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)) }
{- "netgate-packet-trace:filters": {
- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
}
Table of filters that select traced packets.
netgate.packet.trace.packettraceconfig.Filters to be added to list
Array of objects (netgate.packet.trace.packettraceconfig.filters.Filter) An unordered list of named filters. |
{- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
Table of filters that select traced packets.
netgate.packet.trace.packettraceconfig.Filters to be added or updated
object (netgate.packet.trace.packettraceconfig.Filters) Table of filters that select traced packets. |
{- "netgate-packet-trace:filters": {
- "netgate-packet-trace:filter": [
- {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
]
}
}
Table of filters that select traced packets.
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)) }
An unordered list of named filters.
netgate.packet.trace.packettraceconfig.filters.Filter to be added to list
object (netgate.packet.trace.packettraceconfig.filters.filter.Match) Trace filter match values. | |
netgate-packet-trace:name | string The trace filter's name. |
netgate-packet-trace:description | string The brief description of the trace filter. |
{- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
An unordered list of named filters.
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:filter": {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
}
An unordered list of named filters.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.Filter to be added or updated
object (netgate.packet.trace.packettraceconfig.filters.Filter) An unordered list of named filters. |
{- "netgate-packet-trace:filter": {
- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}, - "netgate-packet-trace:name": "string",
- "netgate-packet-trace:description": "string"
}
}
An unordered list of named filters.
name required | string Id of filter |
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)) }
Trace filter match values.
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}
}
Trace filter match values.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.Match to be added to list
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L4) L4 fields | |
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L2) L2 fields | |
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L3) L3 fields |
{- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}
Trace filter match values.
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.Match to be added or updated
object (netgate.packet.trace.packettraceconfig.filters.filter.Match) Trace filter match values. |
{- "netgate-packet-trace:match": {
- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}, - "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}, - "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}
}
Trace filter match values.
name required | string Id of filter |
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)) }
L2 fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}
}
L2 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L2 to be added to list
object (netgate.packet.fields.L2Ethernet) |
{- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}
L2 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L2 to be added or updated
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L2) L2 fields |
{- "netgate-packet-trace:l2": {
- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}
}
L2 fields
name required | string Id of filter |
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)) }
L2 ethernet fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}
L2 ethernet fields
name required | string Id of filter |
netgate.packet.fields.L2Ethernet to be added to list
object (netgate.packet.fields.l2ethernet.VlanDot1q) | |
netgate-packet-trace:source-mac-address | string Source MAC address |
netgate-packet-trace:destination-mac-address | string Destination MAC address |
netgate-packet-trace:ethertype | string An IETF Ethertype name or a value in the range 0x600 - 0xffff. |
netgate-packet-trace:source-mask | string Source MAC address mask |
netgate-packet-trace:destination-mask | string Destination MAC address mask |
{- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
L2 ethernet fields
name required | string Id of filter |
netgate.packet.fields.L2Ethernet to be added or updated
object (netgate.packet.fields.L2Ethernet) |
{- "netgate-packet-trace:ethernet": {
- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:source-mac-address": "string",
- "netgate-packet-trace:destination-mac-address": "string",
- "netgate-packet-trace:ethertype": "string",
- "netgate-packet-trace:source-mask": "string",
- "netgate-packet-trace:destination-mask": "string"
}
}
L2 ethernet fields
name required | string Id of filter |
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)) }
returns netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}
}
creates netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
netgate.packet.fields.l2ethernet.VlanDot1q to be added to list
netgate-packet-trace:pcp | integer <int32> The dot1q VLAN Priority Code Point (class of service). |
object (netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad) | |
netgate-packet-trace:tag | integer <int32> The dot1q VLAN tag value. |
{- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}
creates or updates netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
netgate.packet.fields.l2ethernet.VlanDot1q to be added or updated
object (netgate.packet.fields.l2ethernet.VlanDot1q) |
{- "netgate-packet-trace:vlan-dot1q": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}, - "netgate-packet-trace:tag": 0
}
}
removes netgate.packet.fields.l2ethernet.VlanDot1q
name required | string Id of filter |
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)) }
returns netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}
}
creates netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad to be added to list
netgate-packet-trace:pcp | integer <int32> The dot1ad outer VLAN Priority Code Point (class of service). |
netgate-packet-trace:tag | integer <int32> The dot1ad outer VLAN tag value. |
{- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}
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
object (netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad) |
{- "netgate-packet-trace:vlan-dot1ad": {
- "netgate-packet-trace:pcp": 0,
- "netgate-packet-trace:tag": 0
}
}
removes netgate.packet.fields.l2ethernet.vlandot1q.VlanDot1ad
name required | string Id of filter |
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)) }
L3 fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}
L3 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L3 to be added to list
object (netgate.packet.fields.L3Ip4) This group describes the fields of an IPv4 packet. | |
object (netgate.packet.fields.L3Ip6) This group describes the fields of an IPv6 packet. |
{- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
L3 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L3 to be added or updated
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L3) L3 fields |
{- "netgate-packet-trace:l3": {
- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}, - "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
}
L3 fields
name required | string Id of filter |
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)) }
L3 IPv4 fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}
}
L3 IPv4 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip4 to be added to list
netgate-packet-trace:fragmentation-offset | integer <int32> The fragmentation-offset specifies the offset of a particular fragment relative to the beginning of the original unfragmented IP datagram. |
netgate-packet-trace:flags | string Flags used in the handling of fragments. |
netgate-packet-trace:length | integer <int32> The total length field states the size of the entire packet in bytes. |
netgate-packet-trace:ihl | integer <int32> The internet header length (ihl) states the size of the IPv4 header in 32-byte quantities. Minimum value is 5. |
netgate-packet-trace:ttl | integer <int32> In practice, the TTL field specifies the number of router hops a packet can traverse before it is dropped. |
netgate-packet-trace:version | integer <int32> For IPv4, this field should be 4. |
netgate-packet-trace:ecn | integer <int32> The Explicit Congestion Notification value. |
netgate-packet-trace:protocol | integer <int32> This field specifies the protocol used in the data portion of the IP datagram. |
netgate-packet-trace:identification | integer <int32> The identifcation field was used experimentally for fragmentation grouping. |
netgate-packet-trace:dscp | integer <int32> Formerly called the ToS field, this is the differentiated services (DiffServ) code. |
netgate-packet-trace:destination-ip-prefix | string The destination IPv4 address and prefix mask length. |
netgate-packet-trace:checksum | integer <int32> The checksum field is used for error-checking the packet. |
netgate-packet-trace:source-ip-prefix | string The source IPv4 address and prefix mask length. |
{- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}
L3 IPv4 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip4 to be added or updated
object (netgate.packet.fields.L3Ip4) This group describes the fields of an IPv4 packet. |
{- "netgate-packet-trace:ipv4": {
- "netgate-packet-trace:fragmentation-offset": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:ihl": 0,
- "netgate-packet-trace:ttl": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:ecn": 0,
- "netgate-packet-trace:protocol": 0,
- "netgate-packet-trace:identification": 0,
- "netgate-packet-trace:dscp": 0,
- "netgate-packet-trace:destination-ip-prefix": "string",
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:source-ip-prefix": "string"
}
}
L3 IPv4 fields
name required | string Id of filter |
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)) }
L3 IPv6 fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
L3 IPv6 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip6 to be added to list
netgate-packet-trace:hop-limit | integer <int32> The maximum forwarding count before a packet is dropped. |
netgate-packet-trace:destination-prefix | string The destination IPv6 address and prefix mask length. |
netgate-packet-trace:source-prefix | string The source IPv6 address and prefix mask length. |
netgate-packet-trace:traffic-class | integer <int32> The combined differentiated services field in the high 6 bits and the Explicit Congestion Notification (ECN) in the low 2 bits. |
netgate-packet-trace:flow-label | integer <int64> The 20-bit flow identifier value. |
netgate-packet-trace:payload-length | integer <int32> The length of the payload in octets. |
netgate-packet-trace:version | integer <int32> For IPv6, this field should be 6. |
netgate-packet-trace:next-header | integer <int32> The protocol type of the next header. |
{- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
L3 IPv6 fields
name required | string Id of filter |
netgate.packet.fields.L3Ip6 to be added or updated
object (netgate.packet.fields.L3Ip6) This group describes the fields of an IPv6 packet. |
{- "netgate-packet-trace:ipv6": {
- "netgate-packet-trace:hop-limit": 0,
- "netgate-packet-trace:destination-prefix": "string",
- "netgate-packet-trace:source-prefix": "string",
- "netgate-packet-trace:traffic-class": 0,
- "netgate-packet-trace:flow-label": 0,
- "netgate-packet-trace:payload-length": 0,
- "netgate-packet-trace:version": 0,
- "netgate-packet-trace:next-header": 0
}
}
L3 IPv6 fields
name required | string Id of filter |
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)) }
L4 fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}
}
L4 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L4 to be added to list
object (netgate.packet.fields.L4Tcp) This data describrs the fields of a L4 UDP packet. | |
object (netgate.packet.fields.L4Udp) This data describrs the fields of a L4 UDP packet. |
{- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}
L4 fields
name required | string Id of filter |
netgate.packet.trace.packettraceconfig.filters.filter.match.L4 to be added or updated
object (netgate.packet.trace.packettraceconfig.filters.filter.match.L4) L4 fields |
{- "netgate-packet-trace:l4": {
- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}, - "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}
}
L4 fields
name required | string Id of filter |
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)) }
L4 TCP fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}
}
L4 TCP fields
name required | string Id of filter |
netgate.packet.fields.L4Tcp to be added to list
netgate-packet-trace:source-port | integer <int32> The source port. |
netgate-packet-trace:acknowledgement-number | integer <int32> Acknowledgement number within the session. |
netgate-packet-trace:destination-port | integer <int32> The destination port. |
netgate-packet-trace:checksum | integer <int32> The checksum of the packet. |
netgate-packet-trace:flags | string |
netgate-packet-trace:sequence-number | integer <int32> Sequence number within the session. |
netgate-packet-trace:data-offset | integer <int32> The size of the TCP header in 32-bit words. |
netgate-packet-trace:window | integer <int32> The receive window size. |
{- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}
L4 TCP fields
name required | string Id of filter |
netgate.packet.fields.L4Tcp to be added or updated
object (netgate.packet.fields.L4Tcp) This data describrs the fields of a L4 UDP packet. |
{- "netgate-packet-trace:tcp": {
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:acknowledgement-number": 0,
- "netgate-packet-trace:destination-port": 0,
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:flags": "string",
- "netgate-packet-trace:sequence-number": 0,
- "netgate-packet-trace:data-offset": 0,
- "netgate-packet-trace:window": 0
}
}
L4 TCP fields
name required | string Id of filter |
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)) }
L4 UDP fields
name required | string Id of filter |
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)) }
{- "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}
L4 UDP fields
name required | string Id of filter |
netgate.packet.fields.L4Udp to be added to list
netgate-packet-trace:checksum | integer <int32> The checksum of the packet. |
netgate-packet-trace:length | integer <int32> The length of the packet in bytes. |
netgate-packet-trace:source-port | integer <int32> The source port. |
netgate-packet-trace:destination-port | integer <int32> The destination port. |
{- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
L4 UDP fields
name required | string Id of filter |
netgate.packet.fields.L4Udp to be added or updated
object (netgate.packet.fields.L4Udp) This data describrs the fields of a L4 UDP packet. |
{- "netgate-packet-trace:udp": {
- "netgate-packet-trace:checksum": 0,
- "netgate-packet-trace:length": 0,
- "netgate-packet-trace:source-port": 0,
- "netgate-packet-trace:destination-port": 0
}
}
L4 UDP fields
name required | string Id of filter |
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)) }