Skip to content

jdiff should support multiple ref key anchoring #92

@lvrfrc87

Description

@lvrfrc87

As per json below, we might have multiple vrf and for each vrf multiple peer IPs - which are unique within each vrf. In the example below, we want to anchor global and 192.168.0.0. So regex would look like: $*$.peers.$*$.*.*.[accepted_prefixes,received_prefixes,sent_prefixes]

{
  "global": {
    "router_id": "10.255.255.1",
    "peers": {
      "192.168.0.0": {
        "description": "",
        "remote_id": "10.255.255.240",
        "address_family": {
          "ipv6": {
            "received_prefixes": -1,
            "sent_prefixes": -1,
            "accepted_prefixes": -1
          },
          "ipv4": {
            "received_prefixes": -1,
            "sent_prefixes": -1,
            "accepted_prefixes": -1
          }
        },
        "remote_as": 30000,
        "is_up": true,
        "local_as": 30001,
        "is_enabled": true,
        "uptime": 699262

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions