@Test public void testRealInterafceName() { assertThat(isRealInterfaceName("Ethernet0"), equalTo(true)); assertThat(isRealInterfaceName("ge-0/0/0"), equalTo(true)); assertThat(isRealInterfaceName("asdfasdf"), equalTo(true)); assertThat(isRealInterfaceName("null_interface"), equalTo(false)); assertThat(isRealInterfaceName("unset_local_interface"), equalTo(false)); assertThat(isRealInterfaceName("invalid_local_interface"), equalTo(false)); assertThat(isRealInterfaceName("dynamic"), equalTo(false)); }
public static boolean isRealInterfaceName(@Nonnull String name) { return !ImmutableList.of( UNSET_LOCAL_INTERFACE, DYNAMIC_INTERFACE_NAME, NULL_INTERFACE_NAME, INVALID_LOCAL_INTERFACE) .contains(name); }
Interface extends ComparableStructure<String> { public static boolean isRealInterfaceName(@Nonnull String name) { return !ImmutableList.of( UNSET_LOCAL_INTERFACE, DYNAMIC_INTERFACE_NAME, NULL_INTERFACE_NAME, INVALID_LOCAL_INTERFACE) .contains(name); } }
Interface extends ComparableStructure<String> { public static boolean isRealInterfaceName(@Nonnull String name) { return !ImmutableList.of( UNSET_LOCAL_INTERFACE, DYNAMIC_INTERFACE_NAME, NULL_INTERFACE_NAME, INVALID_LOCAL_INTERFACE) .contains(name); } @JsonCreator private  Interface(@Nullable @JsonProperty(PROP_NAME) String name); private  Interface(String name, Configuration owner); private  Interface(String name, Configuration owner, @Nonnull InterfaceType interfaceType); }
Interface extends ComparableStructure<String> { public static boolean isRealInterfaceName(@Nonnull String name) { return !ImmutableList.of( UNSET_LOCAL_INTERFACE, DYNAMIC_INTERFACE_NAME, NULL_INTERFACE_NAME, INVALID_LOCAL_INTERFACE) .contains(name); } @JsonCreator private  Interface(@Nullable @JsonProperty(PROP_NAME) String name); private  Interface(String name, Configuration owner); private  Interface(String name, Configuration owner, @Nonnull InterfaceType interfaceType); static Builder builder(); static Builder builder(Supplier<String> nameGenerator); static InterfaceType computeInterfaceType(String name, ConfigurationFormat format); @Override boolean equals(Object o); @JsonProperty(PROP_ACCESS_VLAN) @Nullable Integer getAccessVlan(); @JsonProperty(PROP_ACTIVE) boolean getActive(); @JsonProperty(PROP_ADDITIONAL_ARP_IPS) IpSpace getAdditionalArpIps(); @JsonProperty(PROP_ADDRESS_METADATA) @Nonnull SortedMap<ConcreteInterfaceAddress, ConnectedRouteMetadata> getAddressMetadata(); @JsonProperty(PROP_ALLOWED_VLANS) IntegerSpace getAllowedVlans(); @JsonProperty(PROP_ALL_PREFIXES) Set<ConcreteInterfaceAddress> getAllConcreteAddresses(); @JsonIgnore Set<LinkLocalAddress> getAllLinkLocalAddresses(); @Nonnull Set<InterfaceAddress> getAllAddresses(); @JsonProperty(PROP_AUTOSTATE) boolean getAutoState(); @JsonProperty(PROP_BANDWIDTH) @Nullable Double getBandwidth(); @JsonIgnore boolean getBlacklisted(); @JsonProperty(PROP_CHANNEL_GROUP) String getChannelGroup(); @JsonProperty(PROP_CHANNEL_GROUP_MEMBERS) SortedSet<String> getChannelGroupMembers(); @JsonProperty(PROP_CRYPTO_MAP) String getCryptoMap(); @JsonProperty(PROP_DECLARED_NAMES) SortedSet<String> getDeclaredNames(); @JsonIgnore @Nonnull Set<Dependency> getDependencies(); @JsonProperty(PROP_DESCRIPTION) String getDescription(); @JsonProperty(PROP_DHCP_RELAY_ADDRESSES) List<Ip> getDhcpRelayAddresses(); @JsonProperty(PROP_EIGRP) @Nullable EigrpInterfaceSettings getEigrp(); @JsonProperty(PROP_ENCAPSULATION_VLAN) @Nullable Integer getEncapsulationVlan(); @JsonProperty(PROP_FIREWALL_SESSION_INTERFACE_INFO) @Nullable FirewallSessionInterfaceInfo getFirewallSessionInterfaceInfo(); @JsonProperty(PROP_HSRP_GROUPS) Map<Integer, HsrpGroup> getHsrpGroups(); @JsonProperty(PROP_HSRP_VERSION) @Nullable String getHsrpVersion(); @JsonProperty(PROP_HUMAN_NAME) @Nullable String getHumanName(); @JsonIgnore IpAccessList getInboundFilter(); @JsonIgnore IpAccessList getIncomingFilter(); @JsonProperty(PROP_INCOMING_TRANSFORMATION) Transformation getIncomingTransformation(); @JsonProperty(PROP_INTERFACE_TYPE) InterfaceType getInterfaceType(); @JsonProperty(PROP_ISIS) @Nullable IsisInterfaceSettings getIsis(); @JsonProperty(PROP_MLAG_ID) @Nullable Integer getMlagId(); @JsonProperty(PROP_MTU) int getMtu(); @JsonProperty(PROP_NATIVE_VLAN) @Nullable Integer getNativeVlan(); @Nullable @JsonProperty(PROP_OSPF_SETTINGS) OspfInterfaceSettings getOspfSettings(); @JsonIgnore @Nullable Long getOspfAreaName(); @JsonIgnore @Nullable Integer getOspfCost(); @JsonIgnore boolean getOspfEnabled(); @Nullable @JsonIgnore String getOspfInboundDistributeListPolicy(); @Nullable @JsonIgnore OspfNetworkType getOspfNetworkType(); @JsonIgnore boolean getOspfPassive(); @Nullable @JsonIgnore String getOspfProcess(); @JsonIgnore IpAccessList getOutgoingFilter(); @Nullable @JsonIgnore IpAccessList getOutgoingOriginalFlowFilter(); @JsonProperty(PROP_OUTGOING_TRANSFORMATION) Transformation getOutgoingTransformation(); @JsonIgnore Configuration getOwner(); @JsonProperty(PROP_PREFIX) @Nullable InterfaceAddress getAddress(); @JsonIgnore @Nullable ConcreteInterfaceAddress getConcreteAddress(); @JsonIgnore @Nullable LinkLocalAddress getLinkLocalAddress(); @JsonIgnore IpAccessList getPostTransformationIncomingFilter(); @JsonIgnore IpAccessList getPreTransformationOutgoingFilter(); @JsonIgnore @Nullable Prefix getPrimaryNetwork(); @JsonProperty(PROP_PROXY_ARP) boolean getProxyArp(); @JsonProperty(PROP_RIP_ENABLED) boolean getRipEnabled(); @JsonProperty(PROP_RIP_PASSIVE) boolean getRipPassive(); @JsonProperty(PROP_ROUTING_POLICY) String getRoutingPolicyName(); @JsonProperty(PROP_SPANNING_TREE_PORTFAST) boolean getSpanningTreePortfast(); @Nullable Double getSpeed(); @JsonProperty(PROP_SWITCHPORT) boolean getSwitchport(); @JsonProperty(PROP_SWITCHPORT_MODE) SwitchportMode getSwitchportMode(); @JsonProperty(PROP_SWITCHPORT_TRUNK_ENCAPSULATION) SwitchportEncapsulationType getSwitchportTrunkEncapsulation(); @Nullable TunnelConfiguration getTunnelConfig(); @JsonProperty(PROP_VLAN) @Nullable Integer getVlan(); @JsonIgnore Vrf getVrf(); @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_VRRP_GROUPS) SortedMap<Integer, VrrpGroup> getVrrpGroups(); @JsonProperty(PROP_ZONE) String getZoneName(); @JsonIgnore boolean isLoopback(); @JsonProperty(PROP_ACCESS_VLAN) void setAccessVlan(@Nullable Integer vlan); @JsonProperty(PROP_ACTIVE) void setActive(boolean active); @JsonProperty(PROP_ADDITIONAL_ARP_IPS) void setAdditionalArpIps(IpSpace additionalArpIps); @JsonProperty(PROP_ALLOWED_VLANS) void setAllowedVlans(IntegerSpace allowedVlans); @JsonProperty(PROP_ALL_PREFIXES) void setAllAddresses(Iterable<? extends InterfaceAddress> allAddresses); @JsonProperty(PROP_AUTOSTATE) void setAutoState(boolean autoState); @JsonProperty(PROP_BANDWIDTH) void setBandwidth(@Nullable Double bandwidth); @JsonProperty(PROP_CHANNEL_GROUP) void setChannelGroup(String channelGroup); @JsonProperty(PROP_CHANNEL_GROUP_MEMBERS) void setChannelGroupMembers(Iterable<String> channelGroupMembers); @JsonProperty(PROP_CRYPTO_MAP) void setCryptoMap(String cryptoMap); @JsonProperty(PROP_DECLARED_NAMES) void setDeclaredNames(SortedSet<String> declaredNames); @JsonIgnore void setDependencies(@Nonnull Collection<Dependency> dependencies); void addDependency(@Nonnull Dependency dependency); @JsonProperty(PROP_DESCRIPTION) void setDescription(String description); @JsonProperty(PROP_DHCP_RELAY_ADDRESSES) void setDhcpRelayAddresses(List<Ip> dhcpRelayAddresses); @JsonProperty(PROP_EIGRP) void setEigrp(@Nullable EigrpInterfaceSettings eigrp); @JsonProperty(PROP_ENCAPSULATION_VLAN) void setEncapsulationVlan(@Nullable Integer encapsulationVlan); @JsonProperty(PROP_FIREWALL_SESSION_INTERFACE_INFO) void setFirewallSessionInterfaceInfo(
      @Nullable FirewallSessionInterfaceInfo firewallSessionInterfaceInfo); @JsonProperty(PROP_HSRP_GROUPS) void setHsrpGroups(@Nonnull Map<Integer, HsrpGroup> hsrpGroups); @JsonProperty(PROP_HSRP_VERSION) void setHsrpVersion(String hsrpVersion); @JsonProperty(PROP_HUMAN_NAME) void setHumanName(@Nullable String humanName); @JsonIgnore void setInboundFilter(IpAccessList inboundFilter); @JsonIgnore void setIncomingFilter(IpAccessList incomingFilter); @JsonProperty(PROP_INCOMING_TRANSFORMATION) void setIncomingTransformation(Transformation incomingTransformation); @JsonProperty(PROP_INTERFACE_TYPE) void setInterfaceType(InterfaceType it); @JsonProperty(PROP_ISIS) void setIsis(@Nullable IsisInterfaceSettings isis); @JsonProperty(PROP_MLAG_ID) void setMlagId(Integer mlagId); @JsonProperty(PROP_MTU) void setMtu(int mtu); @JsonProperty(PROP_NATIVE_VLAN) void setNativeVlan(@Nullable Integer vlan); @JsonProperty(PROP_OSPF_SETTINGS) void setOspfSettings(@Nullable OspfInterfaceSettings ospfSettings); @JsonIgnore void setOutgoingFilter(IpAccessList outgoingFilter); @JsonIgnore void setOutgoingOriginalFlowFilter(@Nullable IpAccessList outgoingOriginalFlowFilter); @JsonProperty(PROP_OUTGOING_TRANSFORMATION) void setOutgoingTransformation(Transformation outgoingTransformation); @JsonIgnore void setOwner(Configuration owner); @JsonProperty(PROP_PREFIX) void setAddress(InterfaceAddress address); @JsonIgnore void setPostTransformationIncomingFilter(IpAccessList postTransformationIncomingFilter); @JsonIgnore void setPreTransformationOutgoingFilter(IpAccessList preTransformationOutgoingFilter); @JsonProperty(PROP_PROXY_ARP) void setProxyArp(boolean proxyArp); @JsonProperty(PROP_RIP_ENABLED) void setRipEnabled(boolean ripEnabled); @JsonProperty(PROP_RIP_PASSIVE) void setRipPassive(boolean ripPassive); @JsonProperty(PROP_ROUTING_POLICY) void setRoutingPolicy(String routingPolicyName); @JsonProperty(PROP_SPANNING_TREE_PORTFAST) void setSpanningTreePortfast(boolean spanningTreePortfast); @JsonProperty(PROP_SPEED) void setSpeed(@Nullable Double speed); @JsonProperty(PROP_SWITCHPORT) void setSwitchport(boolean switchport); @JsonProperty(PROP_SWITCHPORT_MODE) void setSwitchportMode(SwitchportMode switchportMode); @JsonProperty(PROP_SWITCHPORT_TRUNK_ENCAPSULATION) void setSwitchportTrunkEncapsulation(SwitchportEncapsulationType encapsulation); @JsonProperty(PROP_TUNNEL_CONFIG) void setTunnelConfig(@Nullable TunnelConfiguration tunnelConfig); @JsonProperty(PROP_VLAN) void setVlan(@Nullable Integer vlan); @JsonIgnore void setVrf(Vrf vrf); @JsonProperty(PROP_VRF) void setVrfName(String vrfName); @JsonProperty(PROP_VRRP_GROUPS) void setVrrpGroups(SortedMap<Integer, VrrpGroup> vrrpGroups); @JsonProperty(PROP_ZONE) void setZoneName(String zoneName); void addVrrpGroup(Integer num, @Nonnull VrrpGroup group); void blacklist(); static boolean isRealInterfaceName(@Nonnull String name); }
Interface extends ComparableStructure<String> { public static boolean isRealInterfaceName(@Nonnull String name) { return !ImmutableList.of( UNSET_LOCAL_INTERFACE, DYNAMIC_INTERFACE_NAME, NULL_INTERFACE_NAME, INVALID_LOCAL_INTERFACE) .contains(name); } @JsonCreator private  Interface(@Nullable @JsonProperty(PROP_NAME) String name); private  Interface(String name, Configuration owner); private  Interface(String name, Configuration owner, @Nonnull InterfaceType interfaceType); static Builder builder(); static Builder builder(Supplier<String> nameGenerator); static InterfaceType computeInterfaceType(String name, ConfigurationFormat format); @Override boolean equals(Object o); @JsonProperty(PROP_ACCESS_VLAN) @Nullable Integer getAccessVlan(); @JsonProperty(PROP_ACTIVE) boolean getActive(); @JsonProperty(PROP_ADDITIONAL_ARP_IPS) IpSpace getAdditionalArpIps(); @JsonProperty(PROP_ADDRESS_METADATA) @Nonnull SortedMap<ConcreteInterfaceAddress, ConnectedRouteMetadata> getAddressMetadata(); @JsonProperty(PROP_ALLOWED_VLANS) IntegerSpace getAllowedVlans(); @JsonProperty(PROP_ALL_PREFIXES) Set<ConcreteInterfaceAddress> getAllConcreteAddresses(); @JsonIgnore Set<LinkLocalAddress> getAllLinkLocalAddresses(); @Nonnull Set<InterfaceAddress> getAllAddresses(); @JsonProperty(PROP_AUTOSTATE) boolean getAutoState(); @JsonProperty(PROP_BANDWIDTH) @Nullable Double getBandwidth(); @JsonIgnore boolean getBlacklisted(); @JsonProperty(PROP_CHANNEL_GROUP) String getChannelGroup(); @JsonProperty(PROP_CHANNEL_GROUP_MEMBERS) SortedSet<String> getChannelGroupMembers(); @JsonProperty(PROP_CRYPTO_MAP) String getCryptoMap(); @JsonProperty(PROP_DECLARED_NAMES) SortedSet<String> getDeclaredNames(); @JsonIgnore @Nonnull Set<Dependency> getDependencies(); @JsonProperty(PROP_DESCRIPTION) String getDescription(); @JsonProperty(PROP_DHCP_RELAY_ADDRESSES) List<Ip> getDhcpRelayAddresses(); @JsonProperty(PROP_EIGRP) @Nullable EigrpInterfaceSettings getEigrp(); @JsonProperty(PROP_ENCAPSULATION_VLAN) @Nullable Integer getEncapsulationVlan(); @JsonProperty(PROP_FIREWALL_SESSION_INTERFACE_INFO) @Nullable FirewallSessionInterfaceInfo getFirewallSessionInterfaceInfo(); @JsonProperty(PROP_HSRP_GROUPS) Map<Integer, HsrpGroup> getHsrpGroups(); @JsonProperty(PROP_HSRP_VERSION) @Nullable String getHsrpVersion(); @JsonProperty(PROP_HUMAN_NAME) @Nullable String getHumanName(); @JsonIgnore IpAccessList getInboundFilter(); @JsonIgnore IpAccessList getIncomingFilter(); @JsonProperty(PROP_INCOMING_TRANSFORMATION) Transformation getIncomingTransformation(); @JsonProperty(PROP_INTERFACE_TYPE) InterfaceType getInterfaceType(); @JsonProperty(PROP_ISIS) @Nullable IsisInterfaceSettings getIsis(); @JsonProperty(PROP_MLAG_ID) @Nullable Integer getMlagId(); @JsonProperty(PROP_MTU) int getMtu(); @JsonProperty(PROP_NATIVE_VLAN) @Nullable Integer getNativeVlan(); @Nullable @JsonProperty(PROP_OSPF_SETTINGS) OspfInterfaceSettings getOspfSettings(); @JsonIgnore @Nullable Long getOspfAreaName(); @JsonIgnore @Nullable Integer getOspfCost(); @JsonIgnore boolean getOspfEnabled(); @Nullable @JsonIgnore String getOspfInboundDistributeListPolicy(); @Nullable @JsonIgnore OspfNetworkType getOspfNetworkType(); @JsonIgnore boolean getOspfPassive(); @Nullable @JsonIgnore String getOspfProcess(); @JsonIgnore IpAccessList getOutgoingFilter(); @Nullable @JsonIgnore IpAccessList getOutgoingOriginalFlowFilter(); @JsonProperty(PROP_OUTGOING_TRANSFORMATION) Transformation getOutgoingTransformation(); @JsonIgnore Configuration getOwner(); @JsonProperty(PROP_PREFIX) @Nullable InterfaceAddress getAddress(); @JsonIgnore @Nullable ConcreteInterfaceAddress getConcreteAddress(); @JsonIgnore @Nullable LinkLocalAddress getLinkLocalAddress(); @JsonIgnore IpAccessList getPostTransformationIncomingFilter(); @JsonIgnore IpAccessList getPreTransformationOutgoingFilter(); @JsonIgnore @Nullable Prefix getPrimaryNetwork(); @JsonProperty(PROP_PROXY_ARP) boolean getProxyArp(); @JsonProperty(PROP_RIP_ENABLED) boolean getRipEnabled(); @JsonProperty(PROP_RIP_PASSIVE) boolean getRipPassive(); @JsonProperty(PROP_ROUTING_POLICY) String getRoutingPolicyName(); @JsonProperty(PROP_SPANNING_TREE_PORTFAST) boolean getSpanningTreePortfast(); @Nullable Double getSpeed(); @JsonProperty(PROP_SWITCHPORT) boolean getSwitchport(); @JsonProperty(PROP_SWITCHPORT_MODE) SwitchportMode getSwitchportMode(); @JsonProperty(PROP_SWITCHPORT_TRUNK_ENCAPSULATION) SwitchportEncapsulationType getSwitchportTrunkEncapsulation(); @Nullable TunnelConfiguration getTunnelConfig(); @JsonProperty(PROP_VLAN) @Nullable Integer getVlan(); @JsonIgnore Vrf getVrf(); @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_VRRP_GROUPS) SortedMap<Integer, VrrpGroup> getVrrpGroups(); @JsonProperty(PROP_ZONE) String getZoneName(); @JsonIgnore boolean isLoopback(); @JsonProperty(PROP_ACCESS_VLAN) void setAccessVlan(@Nullable Integer vlan); @JsonProperty(PROP_ACTIVE) void setActive(boolean active); @JsonProperty(PROP_ADDITIONAL_ARP_IPS) void setAdditionalArpIps(IpSpace additionalArpIps); @JsonProperty(PROP_ALLOWED_VLANS) void setAllowedVlans(IntegerSpace allowedVlans); @JsonProperty(PROP_ALL_PREFIXES) void setAllAddresses(Iterable<? extends InterfaceAddress> allAddresses); @JsonProperty(PROP_AUTOSTATE) void setAutoState(boolean autoState); @JsonProperty(PROP_BANDWIDTH) void setBandwidth(@Nullable Double bandwidth); @JsonProperty(PROP_CHANNEL_GROUP) void setChannelGroup(String channelGroup); @JsonProperty(PROP_CHANNEL_GROUP_MEMBERS) void setChannelGroupMembers(Iterable<String> channelGroupMembers); @JsonProperty(PROP_CRYPTO_MAP) void setCryptoMap(String cryptoMap); @JsonProperty(PROP_DECLARED_NAMES) void setDeclaredNames(SortedSet<String> declaredNames); @JsonIgnore void setDependencies(@Nonnull Collection<Dependency> dependencies); void addDependency(@Nonnull Dependency dependency); @JsonProperty(PROP_DESCRIPTION) void setDescription(String description); @JsonProperty(PROP_DHCP_RELAY_ADDRESSES) void setDhcpRelayAddresses(List<Ip> dhcpRelayAddresses); @JsonProperty(PROP_EIGRP) void setEigrp(@Nullable EigrpInterfaceSettings eigrp); @JsonProperty(PROP_ENCAPSULATION_VLAN) void setEncapsulationVlan(@Nullable Integer encapsulationVlan); @JsonProperty(PROP_FIREWALL_SESSION_INTERFACE_INFO) void setFirewallSessionInterfaceInfo(
      @Nullable FirewallSessionInterfaceInfo firewallSessionInterfaceInfo); @JsonProperty(PROP_HSRP_GROUPS) void setHsrpGroups(@Nonnull Map<Integer, HsrpGroup> hsrpGroups); @JsonProperty(PROP_HSRP_VERSION) void setHsrpVersion(String hsrpVersion); @JsonProperty(PROP_HUMAN_NAME) void setHumanName(@Nullable String humanName); @JsonIgnore void setInboundFilter(IpAccessList inboundFilter); @JsonIgnore void setIncomingFilter(IpAccessList incomingFilter); @JsonProperty(PROP_INCOMING_TRANSFORMATION) void setIncomingTransformation(Transformation incomingTransformation); @JsonProperty(PROP_INTERFACE_TYPE) void setInterfaceType(InterfaceType it); @JsonProperty(PROP_ISIS) void setIsis(@Nullable IsisInterfaceSettings isis); @JsonProperty(PROP_MLAG_ID) void setMlagId(Integer mlagId); @JsonProperty(PROP_MTU) void setMtu(int mtu); @JsonProperty(PROP_NATIVE_VLAN) void setNativeVlan(@Nullable Integer vlan); @JsonProperty(PROP_OSPF_SETTINGS) void setOspfSettings(@Nullable OspfInterfaceSettings ospfSettings); @JsonIgnore void setOutgoingFilter(IpAccessList outgoingFilter); @JsonIgnore void setOutgoingOriginalFlowFilter(@Nullable IpAccessList outgoingOriginalFlowFilter); @JsonProperty(PROP_OUTGOING_TRANSFORMATION) void setOutgoingTransformation(Transformation outgoingTransformation); @JsonIgnore void setOwner(Configuration owner); @JsonProperty(PROP_PREFIX) void setAddress(InterfaceAddress address); @JsonIgnore void setPostTransformationIncomingFilter(IpAccessList postTransformationIncomingFilter); @JsonIgnore void setPreTransformationOutgoingFilter(IpAccessList preTransformationOutgoingFilter); @JsonProperty(PROP_PROXY_ARP) void setProxyArp(boolean proxyArp); @JsonProperty(PROP_RIP_ENABLED) void setRipEnabled(boolean ripEnabled); @JsonProperty(PROP_RIP_PASSIVE) void setRipPassive(boolean ripPassive); @JsonProperty(PROP_ROUTING_POLICY) void setRoutingPolicy(String routingPolicyName); @JsonProperty(PROP_SPANNING_TREE_PORTFAST) void setSpanningTreePortfast(boolean spanningTreePortfast); @JsonProperty(PROP_SPEED) void setSpeed(@Nullable Double speed); @JsonProperty(PROP_SWITCHPORT) void setSwitchport(boolean switchport); @JsonProperty(PROP_SWITCHPORT_MODE) void setSwitchportMode(SwitchportMode switchportMode); @JsonProperty(PROP_SWITCHPORT_TRUNK_ENCAPSULATION) void setSwitchportTrunkEncapsulation(SwitchportEncapsulationType encapsulation); @JsonProperty(PROP_TUNNEL_CONFIG) void setTunnelConfig(@Nullable TunnelConfiguration tunnelConfig); @JsonProperty(PROP_VLAN) void setVlan(@Nullable Integer vlan); @JsonIgnore void setVrf(Vrf vrf); @JsonProperty(PROP_VRF) void setVrfName(String vrfName); @JsonProperty(PROP_VRRP_GROUPS) void setVrrpGroups(SortedMap<Integer, VrrpGroup> vrrpGroups); @JsonProperty(PROP_ZONE) void setZoneName(String zoneName); void addVrrpGroup(Integer num, @Nonnull VrrpGroup group); void blacklist(); static boolean isRealInterfaceName(@Nonnull String name); static final int DEFAULT_MTU; static final String DYNAMIC_INTERFACE_NAME; static final String NULL_INTERFACE_NAME; static final Set<InterfaceType> TUNNEL_INTERFACE_TYPES; static final String UNSET_LOCAL_INTERFACE; static final String INVALID_LOCAL_INTERFACE; }