Skip to content

Commit

Permalink
IOSXE: recognize vasi left/right as valid interface prefixes (#6375)
Browse files Browse the repository at this point in the history
  • Loading branch information
progwriter committed Oct 30, 2020
1 parent 253f2d8 commit 691b96e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ public static TraceElement asaPermittedByOutputFilterTraceElement(
.put("TwentyFiveGigE", "TwentyFiveGigE")
.put("TwentyFiveGigabitEthernet", "TwentyFiveGigE")
.put("TwoGigabitEthernet", "TwoGigabitEthernet")
.put("vasileft", "vasileft")
.put("vasiright", "vasiright")
.put("ve", "VirtualEthernet")
.put("VirtualEthernet", "VirtualEthernet")
.put("Virtual-Template", "Virtual-Template")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6275,4 +6275,11 @@ public void testAsaSession() throws IOException {
outside,
equalTo(new FirewallSessionInterfaceInfo(true, ImmutableSet.of("outside"), null, null)));
}

@Test
public void testVasiInterface() throws IOException {
Configuration c = parseConfig("iosxe-vasi-interface");
assertThat(c, hasInterface("vasileft1", hasAddress("1.1.1.2/31")));
assertThat(c, hasInterface("vasiright1", hasAddress("1.1.1.3/31")));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!
hostname iosxe-vasi-interface
!
interface vasileft1
description left
ip address 1.1.1.2/31
interface vasiright1
description right
ip address 1.1.1.3/31

0 comments on commit 691b96e

Please sign in to comment.