@Test public void egressVlan() throws Exception { VlanId egressVlan = config.egressVlan(); assertNotNull("egressVlan should not be null", egressVlan); assertThat(egressVlan, is(EGRESS_VLAN_1)); }
public VlanId egressVlan() { if (!object.has(EGRESS_VLAN)) { return VlanId.NONE; } try { return VlanId.vlanId(object.path(EGRESS_VLAN).asText()); } catch (IllegalArgumentException e) { return null; } }
McastConfig extends Config<ApplicationId> { public VlanId egressVlan() { if (!object.has(EGRESS_VLAN)) { return VlanId.NONE; } try { return VlanId.vlanId(object.path(EGRESS_VLAN).asText()); } catch (IllegalArgumentException e) { return null; } } }
McastConfig extends Config<ApplicationId> { public VlanId egressVlan() { if (!object.has(EGRESS_VLAN)) { return VlanId.NONE; } try { return VlanId.vlanId(object.path(EGRESS_VLAN).asText()); } catch (IllegalArgumentException e) { return null; } }  }
McastConfig extends Config<ApplicationId> { public VlanId egressVlan() { if (!object.has(EGRESS_VLAN)) { return VlanId.NONE; } try { return VlanId.vlanId(object.path(EGRESS_VLAN).asText()); } catch (IllegalArgumentException e) { return null; } }  @Override boolean isValid(); VlanId ingressVlan(); McastConfig setIngressVlan(VlanId vlanId); VlanId egressVlan(); McastConfig setEgressVlan(VlanId vlanId); }
McastConfig extends Config<ApplicationId> { public VlanId egressVlan() { if (!object.has(EGRESS_VLAN)) { return VlanId.NONE; } try { return VlanId.vlanId(object.path(EGRESS_VLAN).asText()); } catch (IllegalArgumentException e) { return null; } }  @Override boolean isValid(); VlanId ingressVlan(); McastConfig setIngressVlan(VlanId vlanId); VlanId egressVlan(); McastConfig setEgressVlan(VlanId vlanId);  }