<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: I develop application that needs data from router. How to get the current routing table from CISCO 4331 ISR in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4184687#M2146</link>
    <description>&lt;P&gt;You could use -&amp;nbsp;&lt;A href="https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-routing:routing-state/routing-instance" target="_blank"&gt;https://ios-xe-mgmt.cisco.com:9443/restconf/data/&lt;STRONG&gt;ietf-routing:routing-state/routing-instance&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -v -k -u admin:admin -H "Accept: application/yang-data+json" https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-routing:routing-state/routing-instance&lt;/PRE&gt;&lt;P&gt;Output&lt;/P&gt;&lt;PRE&gt;{
  "ietf-routing:routing-instance": [
    {
      "name": "default",
      "type": "ietf-routing:default-routing-instance",
      "router-id": "0.0.0.0",
      "routing-protocols": {
        "routing-protocol": [
          {
            "type": "ietf-routing:direct",
            "name": "0"
          },
          {
            "type": "ietf-routing:static",
            "name": "0"
          }
        ]
      },
      "ribs": {
        "rib": [
          {
            "name": "ipv4-default",
            "address-family": "ietf-routing:ipv4",
            "default-rib": false,
            "routes": {
              "route": [
                {
                  "destination-prefix": "0.0.0.0/0",
                  "route-preference": 1,
                  "metric": 1,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "10.10.20.254"
                  },
                  "source-protocol": "ietf-routing:static",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.1.1.200/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback200",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.2.3.4/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback1234",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.2.3.55/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback55",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.1.1.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback1001",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.20.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.20.48/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.255.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet3",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.255.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet3",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.255.255.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet2",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.255.255.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet2",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "172.16.100.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback100",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "172.16.100.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback100",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                }
              ]
            }
          },
          {
            "name": "ipv6-default",
            "address-family": "ietf-routing:ipv6",
            "default-rib": false
          }
        ]
      }
    },
    {
      "name": "__Platform_iVRF:_ID00_",
      "type": "ietf-routing:vrf-routing-instance",
      "router-id": "0.0.0.0",
      "interfaces": {
        "interface": ["LIIN0"]
      },
      "routing-protocols": {
        "routing-protocol": [
          {
            "type": "ietf-routing:direct",
            "name": "0"
          }
        ]
      },
      "ribs": {
        "rib": [
          {
            "name": "ipv4-default",
            "address-family": "ietf-routing:ipv4",
            "default-rib": false,
            "routes": {
              "route": [
                {
                  "destination-prefix": "192.168.1.4/30",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "LIIN0",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "192.168.1.6/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "LIIN0",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                }
              ]
            }
          },
          {
            "name": "ipv6-default",
            "address-family": "ietf-routing:ipv6",
            "default-rib": false
          }
        ]
      }
    }
  ]
}&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Nov 2020 13:06:31 GMT</pubDate>
    <dc:creator>omz</dc:creator>
    <dc:date>2020-11-17T13:06:31Z</dc:date>
    <item>
      <title>I develop application that needs data from router. How to get the current routing table from CISCO 4331 ISR</title>
      <link>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4177809#M2144</link>
      <description>&lt;P&gt;I try restconf but get 404 error&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 08:57:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4177809#M2144</guid>
      <dc:creator>RuthiMosacho</dc:creator>
      <dc:date>2020-11-03T08:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: I develop application that needs data from router. How to get the current routing table from CISCO 4331 ISR</title>
      <link>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4184503#M2145</link>
      <description>&lt;P&gt;Multiple ways to achieve this. You can do a simple send_command in python using the netmiko library and ssh, then process the response in python data structures.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 02:40:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4184503#M2145</guid>
      <dc:creator>CameronC</dc:creator>
      <dc:date>2020-11-17T02:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: I develop application that needs data from router. How to get the current routing table from CISCO 4331 ISR</title>
      <link>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4184687#M2146</link>
      <description>&lt;P&gt;You could use -&amp;nbsp;&lt;A href="https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-routing:routing-state/routing-instance" target="_blank"&gt;https://ios-xe-mgmt.cisco.com:9443/restconf/data/&lt;STRONG&gt;ietf-routing:routing-state/routing-instance&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -v -k -u admin:admin -H "Accept: application/yang-data+json" https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-routing:routing-state/routing-instance&lt;/PRE&gt;&lt;P&gt;Output&lt;/P&gt;&lt;PRE&gt;{
  "ietf-routing:routing-instance": [
    {
      "name": "default",
      "type": "ietf-routing:default-routing-instance",
      "router-id": "0.0.0.0",
      "routing-protocols": {
        "routing-protocol": [
          {
            "type": "ietf-routing:direct",
            "name": "0"
          },
          {
            "type": "ietf-routing:static",
            "name": "0"
          }
        ]
      },
      "ribs": {
        "rib": [
          {
            "name": "ipv4-default",
            "address-family": "ietf-routing:ipv4",
            "default-rib": false,
            "routes": {
              "route": [
                {
                  "destination-prefix": "0.0.0.0/0",
                  "route-preference": 1,
                  "metric": 1,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "10.10.20.254"
                  },
                  "source-protocol": "ietf-routing:static",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.1.1.200/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback200",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.2.3.4/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback1234",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "1.2.3.55/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback55",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.1.1.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback1001",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.20.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.20.48/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet1",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.255.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet3",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.10.255.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet3",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.255.255.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet2",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "10.255.255.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "GigabitEthernet2",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "172.16.100.0/24",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback100",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "172.16.100.1/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "Loopback100",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                }
              ]
            }
          },
          {
            "name": "ipv6-default",
            "address-family": "ietf-routing:ipv6",
            "default-rib": false
          }
        ]
      }
    },
    {
      "name": "__Platform_iVRF:_ID00_",
      "type": "ietf-routing:vrf-routing-instance",
      "router-id": "0.0.0.0",
      "interfaces": {
        "interface": ["LIIN0"]
      },
      "routing-protocols": {
        "routing-protocol": [
          {
            "type": "ietf-routing:direct",
            "name": "0"
          }
        ]
      },
      "ribs": {
        "rib": [
          {
            "name": "ipv4-default",
            "address-family": "ietf-routing:ipv4",
            "default-rib": false,
            "routes": {
              "route": [
                {
                  "destination-prefix": "192.168.1.4/30",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "LIIN0",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                },
                {
                  "destination-prefix": "192.168.1.6/32",
                  "route-preference": 0,
                  "metric": 0,
                  "next-hop": {
                    "outgoing-interface": "LIIN0",
                    "next-hop-address": "0.0.0.0"
                  },
                  "source-protocol": "ietf-routing:direct",
                  "active": [null]
                }
              ]
            }
          },
          {
            "name": "ipv6-default",
            "address-family": "ietf-routing:ipv6",
            "default-rib": false
          }
        ]
      }
    }
  ]
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Nov 2020 13:06:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/i-develop-application-that-needs-data-from-router-how-to-get-the/m-p/4184687#M2146</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-11-17T13:06:31Z</dc:date>
    </item>
  </channel>
</rss>

