


// define images directory relative to pwd if not defined in master.   
ifndef::imagesdir[:imagesdir: ../images]

.Show Edge Router Configuration
[source,json]
[%collapsible]
====
----
{
  "ietf-restconf:data": {
    "rtbrick-config:system": {
      "load-last-config": "true"
    },
    "rtbrick-config:interface": [
      {
        "name": "hostif-0/0/0",
        "host-if": "RR-16-R1",
        "unit": [
          {
            "unit-id": 10,
            "ipv6-admin-status": "up",
            "mpls-admin-status": "up",
            "address": {
              "ipv4": [
                {
                  "prefix4": "192.0.2.30/30"
                }
              ],
              "ipv6": [
                {
                  "prefix6": "2001:db8:6:1::2/64"
                }
              ]
            }
          }
        ]
      },
      {
        "name": "hostif-0/0/1",
        "host-if": "RR-18-R2",
        "unit": [
          {
            "unit-id": 10,
            "ipv6-admin-status": "up",
            "mpls-admin-status": "up",
            "address": {
              "ipv4": [
                {
                  "prefix4": "192.0.2.34/30"
                }
              ],
              "ipv6": [
                {
                  "prefix6": "2001:db8:8:1::2/64"
                }
              ]
            }
          }
        ]
      },
      {
        "name": "hostif-0/0/2",
        "host-if": "RR-19-SN",
        "unit": [
          {
            "unit-id": 10,
            "ipv6-admin-status": "up",
            "mpls-admin-status": "up",
            "address": {
              "ipv4": [
                {
                  "prefix4": "192.0.2.53/30"
                }
              ],
              "ipv6": [
                {
                  "prefix6": "2001:db8:1:1::1/64"
                }
              ]
            }
          }
        ]
      },
      {
        "name": "lo-0/0/0",
        "unit": [
          {
            "unit-id": 10,
            "ipv6-admin-status": "up",
            "address": {
              "ipv4": [
                {
                  "prefix4": "198.51.100.51/32"
                }
              ],
              "ipv6": [
                {
                  "prefix6": "2001:db8:0:1::51/128"
                }
              ]
            }
          },
          {
            "unit-id": 20,
            "ipv6-admin-status": "up",
            "mpls-admin-status": "up",
            "address": {
              "ipv4": [
                {
                  "prefix4": "198.51.100.52/32"
                }
              ],
              "ipv6": [
                {
                  "prefix6": "2001:db8:0:1::52/128"
                }
              ]
            }
          }
        ]
      }
    ],
    "rtbrick-config:instance": [
      {
        "name": "default",
        "protocol": {
          "isis": {
            "system-id": "1921.6800.1005",
            "area": [
              "49.0002/24"
              ],
            "segment-routing": {
              "srgb": {
                "base": 1000,
                "range": 100
              }
            },
            "interface": [
              {
                "name": "hostif-0/0/0/10",
                "type": "point-to-point",
                "ldp-synchronization": "enable",
                "level-2": {
                  "adjacency-disable": "true"
                }
              },
              {
                "name": "hostif-0/0/1/10",
                "type": "point-to-point",
                "ldp-synchronization": "enable",
                "level-2": {
                  "adjacency-disable": "true"
                }
              },
              {
                "name": "hostif-0/0/2/10",
                "type": "point-to-point",
                "ldp-synchronization": "enable",
                "level-2": {
                  "adjacency-disable": "true"
                }
              },
              {
                "name": "lo-0/0/0/10",
                "type": "point-to-point",
                "passive": "true",
                "segment-routing": {
                  "ipv4": {
                    "index": 51
                  }
                }
              }
            ]
          },
          "bgp": {
            "domain-name": "Route Reflector",
            "enforce-first-as": "disable",
            "hostname": "Route Reflector",
            "local-as": 65001,
            "router-id": "198.51.100.5",
            "address-family": [
              {
                "afi": "ipv4",
                "safi": "unicast",
                "multipath": 4,
                "resolve-nexthop": {
                  "safi": "labeled-unicast"
                },
                "redistribute": [
                  {
                    "source": "static"
                  }
                ]
              },
              {
                "afi": "ipv6",
                "safi": "labeled-unicast"
              },
              {
                "afi": "ipv6",
                "safi": "unicast",
                "multipath": 4,
                "resolve-nexthop": {
                  "safi": "labeled-unicast"
                },
                "redistribute": [
                  {
                    "source": "static"
                  }
                ]
              }
            ],
            "peer": {
              "ipv4": [
                {
                  "peer-address": "192.0.2.54",
                  "update-source": "198.51.100.51",
                  "peer-group": "access_router"
                },
                {
                  "peer-address": "192.0.2.54",
                  "update-source": "198.51.100.52",
                  "peer-group": "access_router"
                },
                {
                  "peer-address": "198.51.100.1",
                  "update-source": "198.51.100.51",
                  "peer-group": "cbng1"
                },
                {
                  "peer-address": "198.51.100.2",
                  "update-source": "198.51.100.51",
                  "peer-group": "cbng2"
                }
              ]
            },
            "peer-group": [
              {
                "pg-name": "access_router",
                "remote-as": 65002,
                "address-family": [
                  {
                    "afi": "ipv4",
                    "safi": "unicast"
                  },
                  {
                    "afi": "ipv6",
                    "safi": "labeled-unicast"
                  },
                  {
                    "afi": "ipv6",
                    "safi": "unicast",
                    "send-label": "true"
                  }
                ]
              },
              {
                "pg-name": "cbng1",
                "remote-as": 65001,
                "address-family": [
                  {
                    "afi": "ipv4",
                    "safi": "unicast",
                    "route-reflect-client": "true",
                    "nexthop-self": "true",
                    "policy": {
                      "export": [
                        "CBNG1_RD_NH_CHANGE"
                        ]
                    }
                  },
                  {
                    "afi": "ipv6",
                    "safi": "labeled-unicast"
                  },
                  {
                    "afi": "ipv6",
                    "safi": "unicast",
                    "nexthop-self": "true",
                    "send-label": "true"
                  }
                ]
              },
              {
                "pg-name": "cbng2",
                "remote-as": 65001,
                "address-family": [
                  {
                    "afi": "ipv4",
                    "safi": "unicast",
                    "route-reflect-client": "true",
                    "nexthop-self": "true",
                    "policy": {
                      "export": [
                        "CBNG2_RD_NH_CHANGE"
                        ]
                    }
                  },
                  {
                    "afi": "ipv6",
                    "safi": "labeled-unicast"
                  },
                  {
                    "afi": "ipv6",
                    "safi": "unicast",
                    "nexthop-self": "true",
                    "send-label": "true"
                  }
                ]
              }
            ]
          },
          "ldp": {
            "router-id": "198.51.100.51",
            "interface": [
              {
                "name": "hostif-0/0/0/10"
              },
              {
                "name": "hostif-0/0/1/10"
              },
              {
                "name": "lo-0/0/0/10"
              }
            ]
          }
        }
      }
    ],
    "rtbrick-config:policy": {
      "statement": [
        {
          "name": "CBNG1_RD_NH_CHANGE",
          "ordinal": [
            {
              "ordinal": 1,
              "match-logic": "or",
              "match": {
                "rule": [
                  {
                    "rule": 1,
                    "type": "ipv4-prefix",
                    "value-type": "discrete",
                    "match-type": "exact",
                    "value": [
                      "198.51.100.200/32"
                      ]
                  },
                  {
                    "rule": 2,
                    "type": "ipv4-prefix",
                    "value-type": "discrete",
                    "match-type": "exact",
                    "value": [
                      "198.51.100.210/32"
                      ]
                  }
                ]
              },
              "action": {
                "rule": [
                  {
                    "rule": 1,
                    "type": "ipv4-nexthop",
                    "operation": "overwrite",
                    "value": [
                      "198.51.100.2"
                      ]
                  },
                  {
                    "rule": 999,
                    "operation": "return-permit"
                  }
                ]
              }
            },
            {
              "ordinal": 10,
              "description": "PERMIT_OTHERWISE",
              "action": {
                "rule": [
                  {
                    "rule": 1,
                    "operation": "return-permit"
                  }
                ]
              }
            }
          ]
        },
        {
          "name": "CBNG2_RD_NH_CHANGE",
          "ordinal": [
            {
              "ordinal": 1,
              "match-logic": "or",
              "match": {
                "rule": [
                  {
                    "rule": 1,
                    "type": "ipv4-prefix",
                    "value-type": "discrete",
                    "match-type": "exact",
                    "value": [
                      "198.51.100.100/32"
                      ]
                  },
                  {
                    "rule": 2,
                    "type": "ipv4-prefix",
                    "value-type": "discrete",
                    "match-type": "exact",
                    "value": [
                      "198.51.100.110/32"
                      ]
                  }
                ]
              },
              "action": {
                "rule": [
                  {
                    "rule": 1,
                    "type": "ipv4-nexthop",
                    "operation": "overwrite",
                    "value": [
                      "198.51.100.1"
                      ]
                  },
                  {
                    "rule": 999,
                    "operation": "return-permit"
                  }
                ]
              }
            },
            {
              "ordinal": 10,
              "description": "PERMIT_OTHERWISE",
              "action": {
                "rule": [
                  {
                    "rule": 1,
                    "operation": "return-permit"
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  }
}
----
====