Class L2GatewayDevice


  • public class L2GatewayDevice
    extends java.lang.Object
    The Class L2GatewayDevice.
    • Constructor Summary

      Constructors 
      Constructor Description
      L2GatewayDevice​(java.lang.String deviceName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addL2GatewayId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
      Adds the l2 gateway id.
      void addL2gwConnectionIdToDevice​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid connectionId, org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices device)  
      void addTunnelIp​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tunnelIp)
      Adds the tunnel ip.
      void addUcastLocalMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs localUcastMacs)
      Adds the ucast local mac.
      boolean containsUcastMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs mac)  
      boolean equals​(java.lang.Object obj)  
      java.lang.String getDeviceName()
      VTEP device name mentioned with L2 Gateway.
      @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices> getDevicesForL2gwConnectionId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid connectionId)  
      java.lang.String getHwvtepNodeId()
      VTEP Node id for the device mentioned with L2 Gateway.
      @NonNull java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getL2GatewayIds()
      UUID representing L2Gateway.
      @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getTunnelIp()
      Gets the tunnel ip.
      @NonNull java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getTunnelIps()
      Tunnel IP created with in the device mentioned with L2 Gateway.
      @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs> getUcastLocalMacs()
      Gets the ucast local macs.
      int hashCode()  
      boolean isConnected()  
      void removeL2GatewayId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
      Removes the l2 gateway id.
      void removeUcastLocalMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs localUcastMacs)
      Removes the ucast local mac.
      void setConnected​(boolean connected)  
      void setHwvtepNodeId​(java.lang.String nodeId)
      Sets the hwvtep node id.
      void setTunnelIps​(java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> tunnelIps)
      Sets the tunnel ips.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • L2GatewayDevice

        public L2GatewayDevice​(java.lang.String deviceName)
    • Method Detail

      • getDeviceName

        public java.lang.String getDeviceName()
        VTEP device name mentioned with L2 Gateway.
        Returns:
        the device name
      • getHwvtepNodeId

        public java.lang.String getHwvtepNodeId()
        VTEP Node id for the device mentioned with L2 Gateway.
        Returns:
        the hwvtep node id
      • setHwvtepNodeId

        public void setHwvtepNodeId​(java.lang.String nodeId)
        Sets the hwvtep node id.
        Parameters:
        nodeId - the new hwvtep node id
      • getTunnelIps

        public @NonNull java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getTunnelIps()
        Tunnel IP created with in the device mentioned with L2 Gateway.
        Returns:
        the tunnel ips
      • addL2gwConnectionIdToDevice

        public void addL2gwConnectionIdToDevice​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid connectionId,
                                                org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices device)
      • getDevicesForL2gwConnectionId

        public @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.attributes.Devices> getDevicesForL2gwConnectionId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid connectionId)
      • getTunnelIp

        public @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getTunnelIp()
        Gets the tunnel ip.
        Returns:
        the tunnel ip
      • addTunnelIp

        public void addTunnelIp​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tunnelIp)
        Adds the tunnel ip.
        Parameters:
        tunnelIp - the tunnel ip
      • getL2GatewayIds

        public @NonNull java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getL2GatewayIds()
        UUID representing L2Gateway.
        Returns:
        the l2 gateway ids
      • addL2GatewayId

        public void addL2GatewayId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
        Adds the l2 gateway id.
        Parameters:
        l2GatewayId - the l2 gateway id
      • removeL2GatewayId

        public void removeL2GatewayId​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2GatewayId)
        Removes the l2 gateway id.
        Parameters:
        l2GatewayId - the l2 gateway id
      • setTunnelIps

        public void setTunnelIps​(java.util.Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> tunnelIps)
        Sets the tunnel ips.
        Parameters:
        tunnelIps - the new tunnel ips
      • getUcastLocalMacs

        public @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs> getUcastLocalMacs()
        Gets the ucast local macs.
        Returns:
        the ucast local macs
      • addUcastLocalMac

        public void addUcastLocalMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs localUcastMacs)
        Adds the ucast local mac.
        Parameters:
        localUcastMacs - the local ucast macs
      • removeUcastLocalMac

        public void removeUcastLocalMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs localUcastMacs)
        Removes the ucast local mac.
        Parameters:
        localUcastMacs - the local ucast macs
      • isConnected

        public boolean isConnected()
      • setConnected

        public void setConnected​(boolean connected)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • containsUcastMac

        public boolean containsUcastMac​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalUcastMacs mac)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object