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