Uploaded image for project: 'Ansible Networking & Security (Content)'
  1. Ansible Networking & Security (Content)
  2. ANA-547

Cisco IOSXR_static_routes module adds VRF to commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.4
    • networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Networking Sprint 14
    • Important

      Definition of Done:

       

      • Code completed to meet acceptance criteria based on architecture documents/requirements.
      • Pull Request reviewed and approved by peers.
      • Tests are written and do not "break the build" (all tests pass CI/CD). Type of tests (unit/ integration) dependent on need and content. 
        • Run tests locally with downstream EE  if required in following cases:
          • The Downstream CI fails for the PR ( setup local EE to debug the issue)
          • PR change specifically requires tests to be ran against a local EE
          • A passing downstream Jenkins CI pipeline run is required if any of these criterias are met:
        • The PR touches code in ansible.utils or ansible.netcommon.
        • The PR has integration test changes. As such, any PR that adds a new plugin would require this.
        • The PR touches a plugin that is dependent on a third party library (e.g., xmltodict, pyats, etc.).
        • The PR resolves a customer ticket (bug/feature).
        • Changelog written, except for trivial changes such as test updates, GHA workflow updates, linter changes, etc.

      When adding a  static route that points to an interface the static route module adds VRF to the front of it for IPV4 and IPV6 in global and vrf context.
      Example:
      Global:
      router static
       address-family ipv4 unicast
        192.168.17.0/24 vrf Loopback0
       !
       address-family ipv6 unicast
        2001:db8::/64 vrf Loopback0

      VRF Context:
      router static
       vrf TEST_PARTNER
        address-family ipv4 unicast
         192.168.17.0/24 vrf Loopback0
        !
        address-family ipv6 unicast
         2001:db8::/64 vrf Loopback0

       

      Under the router static configuration of the device and in the address-family ipv4 and ipv6 section the command should not be sending the "vrf" at all.  It is configured to send only the destination and the next hop interface.  Putting 'vrf' between the two will not work correctly.

       

      cisco.iosxr 10.1.0

       

      iosxr-mpls, V 6.5.3[Default], Cisco Systems, at disk0:iosxr-mpls-6.5.3
      Built on Tue Mar 26 14:46:51 GMT 2019
      By iox-ucs-017 in /auto/srcarchive13/prod/6.5.3/asr9k-px/ws for pie

       

            rh-ee-rpakhle Ruchi Pakhle
            rhn-support-gscarbor Gary Scarborough
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: