@Test public void testEigrp() { assertThat( RoutingProtocolSpecifier.create("eigrp").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.EIGRP, RoutingProtocol.EIGRP_EX))); }
@Test public void testIsis() { assertThat( RoutingProtocolSpecifier.create("isis").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.ISIS_L1, RoutingProtocol.ISIS_L2))); }
@Test public void testLocal() { assertThat( RoutingProtocolSpecifier.create("local").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.LOCAL))); }
@Test public void testBgp() { assertThat( RoutingProtocolSpecifier.create("bgp").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.BGP, RoutingProtocol.IBGP))); }
@Test public void testOspf() { assertThat( RoutingProtocolSpecifier.create("ospf").getProtocols(), equalTo( ImmutableSet.of( RoutingProtocol.OSPF, RoutingProtocol.OSPF_IA, RoutingProtocol.OSPF_E1, RoutingProtocol.OSPF_E2))); }
@Test public void testOspfInter() { assertThat( RoutingProtocolSpecifier.create("ospf-inter").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.OSPF_IA))); }
@Test public void testTrimming() { assertThat( RoutingProtocolSpecifier.create("bgp , isis ").getProtocols(), equalTo( ImmutableSet.of( RoutingProtocol.BGP, RoutingProtocol.IBGP, RoutingProtocol.ISIS_L1, RoutingProtocol.ISIS_L2))); }
@Test public void testEbgp() { assertThat( RoutingProtocolSpecifier.create("ebgp").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.BGP))); }
@Test public void testEigrpInt() { assertThat( RoutingProtocolSpecifier.create("eigrp-int").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.EIGRP))); }
@Test public void testIbgp() { assertThat( RoutingProtocolSpecifier.create("ibgp").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.IBGP))); }
@Test public void testIsisL1() { assertThat( RoutingProtocolSpecifier.create("isis-l1").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.ISIS_L1))); }
@Test public void testOspfExt2() { assertThat( RoutingProtocolSpecifier.create("ospf-ext2").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.OSPF_E2))); }
@Test public void testConnected() { assertThat( RoutingProtocolSpecifier.create("connected").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.CONNECTED))); }
@Test public void testEigrpExt() { assertThat( RoutingProtocolSpecifier.create("eigrp-ext").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.EIGRP_EX))); }
@Test public void testIsisL2() { assertThat( RoutingProtocolSpecifier.create("isis-l2").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.ISIS_L2))); }
@Test public void testRip() { assertThat( RoutingProtocolSpecifier.create("rip").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.RIP))); }
@Test public void testStatic() { assertThat( RoutingProtocolSpecifier.create("static").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.STATIC))); }
@Test public void testOspfIntra() { assertThat( RoutingProtocolSpecifier.create("ospf-intra").getProtocols(), equalTo(ImmutableSet.of(RoutingProtocol.OSPF))); }
@Test public void testAll() { assertThat( RoutingProtocolSpecifier.create("all").getProtocols(), equalTo(Stream.of(RoutingProtocol.values()).collect(Collectors.toSet()))); }
@Test public void testCreationDefault() { assertThat( RoutingProtocolSpecifier.create(null).getProtocols(), equalTo(Stream.of(RoutingProtocol.values()).collect(Collectors.toSet()))); }