@Test public void testIncomingFilterReturnsName() { IpAccessList acl = IpAccessList.builder() .setName("MY_ACL") .setLines(ImmutableList.of(ExprAclLine.ACCEPT_ALL)) .build(); Interface i1 = Interface.builder().setName("i1").setIncomingFilter(acl).build(); assertThat( InterfacePropertySpecifier.getPropertyDescriptor(INCOMING_FILTER_NAME) .getGetter() .apply(i1), equalTo(acl.getName())); }
public static PropertyDescriptor<Interface> getPropertyDescriptor(String property) { checkArgument(JAVA_MAP.containsKey(property), "Property " + property + " does not exist"); return JAVA_MAP.get(property); }
InterfacePropertySpecifier extends PropertySpecifier { public static PropertyDescriptor<Interface> getPropertyDescriptor(String property) { checkArgument(JAVA_MAP.containsKey(property), "Property " + property + " does not exist"); return JAVA_MAP.get(property); } }
InterfacePropertySpecifier extends PropertySpecifier { public static PropertyDescriptor<Interface> getPropertyDescriptor(String property) { checkArgument(JAVA_MAP.containsKey(property), "Property " + property + " does not exist"); return JAVA_MAP.get(property); } InterfacePropertySpecifier(Set<String> properties); }
InterfacePropertySpecifier extends PropertySpecifier { public static PropertyDescriptor<Interface> getPropertyDescriptor(String property) { checkArgument(JAVA_MAP.containsKey(property), "Property " + property + " does not exist"); return JAVA_MAP.get(property); } InterfacePropertySpecifier(Set<String> properties); static PropertyDescriptor<Interface> getPropertyDescriptor(String property); @Nonnull static InterfacePropertySpecifier create(@Nullable String expression); @Override List<String> getMatchingProperties(); @Override boolean equals(Object o); @Override int hashCode(); }
InterfacePropertySpecifier extends PropertySpecifier { public static PropertyDescriptor<Interface> getPropertyDescriptor(String property) { checkArgument(JAVA_MAP.containsKey(property), "Property " + property + " does not exist"); return JAVA_MAP.get(property); } InterfacePropertySpecifier(Set<String> properties); static PropertyDescriptor<Interface> getPropertyDescriptor(String property); @Nonnull static InterfacePropertySpecifier create(@Nullable String expression); @Override List<String> getMatchingProperties(); @Override boolean equals(Object o); @Override int hashCode(); static final String ACCESS_VLAN; static final String ACTIVE; static final String ALLOWED_VLANS; static final String ALL_PREFIXES; static final String AUTO_STATE_VLAN; static final String BANDWIDTH; static final String BLACKLISTED; static final String CHANNEL_GROUP; static final String CHANNEL_GROUP_MEMBERS; static final String DECLARED_NAMES; static final String DESCRIPTION; static final String DHCP_RELAY_ADDRESSES; static final String ENCAPSULATION_VLAN; static final String HSRP_GROUPS; static final String HSRP_VERSION; static final String INCOMING_FILTER_NAME; static final String INTERFACE_TYPE; static final String MLAG_ID; static final String MTU; static final String NATIVE_VLAN; static final String OUTGOING_FILTER_NAME; static final String PBR_POLICY_NAME; static final String PRIMARY_ADDRESS; static final String PRIMARY_NETWORK; static final String PROXY_ARP; static final String RIP_ENABLED; static final String RIP_PASSIVE; static final String SPANNING_TREE_PORTFAST; static final String SPEED; static final String SWITCHPORT; static final String SWITCHPORT_MODE; static final String SWITCHPORT_TRUNK_ENCAPSULATION; static final String VRF; static final String VRRP_GROUPS; static final String ZONE_NAME; static final InterfacePropertySpecifier ALL; }