Class InterfaceUtils


  • public final class InterfaceUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices> buildServiceId​(java.lang.String vpnInterfaceName, short serviceIndex)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> buildStateInterfaceId​(java.lang.String interfaceName)  
      static org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices getBoundServices​(java.lang.String serviceName, short servicePriority, int flowPriority, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)  
      static org.opendaylight.yangtools.yang.common.Uint64 getDpIdFromInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      static org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpcService, java.lang.String ifName)  
      static java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)  
      static java.lang.String getEndpointIpAddressForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String interfaceName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getInterfaceIdentifier​(java.lang.String interfaceName)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String interfaceName)  
      static com.google.common.base.Optional<java.lang.String> getMacAddressForInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String interfaceName)  
      static com.google.common.base.Optional<java.lang.String> getMacAddressFromInterfaceState​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      static boolean isOperational​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String ifName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDpnForInterface

        public static org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpcService,
                                                                                       java.lang.String ifName)
      • getEndpointIpAddressForDPN

        public static java.lang.String getEndpointIpAddressForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                  org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • buildServiceId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices> buildServiceId​(java.lang.String vpnInterfaceName,
                                                                                                                                                                                                                                             short serviceIndex)
      • getBoundServices

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices getBoundServices​(java.lang.String serviceName,
                                                                                                                                                                                   short servicePriority,
                                                                                                                                                                                   int flowPriority,
                                                                                                                                                                                   org.opendaylight.yangtools.yang.common.Uint64 cookie,
                                                                                                                                                                                   java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
      • isOperational

        public static boolean isOperational​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                            java.lang.String ifName)
      • buildStateInterfaceId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> buildStateInterfaceId​(java.lang.String interfaceName)
      • getInterfaceStateFromOperDS

        public static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                                                                          java.lang.String interfaceName)
      • getInterface

        public static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                     java.lang.String interfaceName)
      • getMacAddressForInterface

        public static com.google.common.base.Optional<java.lang.String> getMacAddressForInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                  java.lang.String interfaceName)
      • getMacAddressFromInterfaceState

        public static com.google.common.base.Optional<java.lang.String> getMacAddressFromInterfaceState​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
      • getInterfaceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getInterfaceIdentifier​(java.lang.String interfaceName)
      • getDpnFromNodeConnectorId

        public static java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
      • getDpIdFromInterface

        public static org.opendaylight.yangtools.yang.common.Uint64 getDpIdFromInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)