Class TestInterfaceManager

  • All Implemented Interfaces:
    IInterfaceManager

    public abstract class TestInterfaceManager
    extends java.lang.Object
    implements IInterfaceManager
    IInterfaceManager implementation for tests.
    Author:
    Michael Vorburger
    • Constructor Detail

      • TestInterfaceManager

        public TestInterfaceManager()
    • Method Detail

      • newInstance

        public static TestInterfaceManager newInstance​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • addInterfaceInfo

        public void addInterfaceInfo​(InterfaceInfo interfaceInfo)
                              throws org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
      • addInterface

        public void addInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
      • addTunnelInterface

        public void addTunnelInterface​(TunnelInterfaceDetails tunnelInterfaceDetails)
                                throws org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException
      • getInterfaceInfoFromConfigDataStore

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceInfoFromConfigDataStore​(java.lang.String interfaceName)
        Description copied from interface: IInterfaceManager
        Retrieve the interface information from the configuration datastore.
        Specified by:
        getInterfaceInfoFromConfigDataStore in interface IInterfaceManager
        Parameters:
        interfaceName - The interface name.
        Returns:
        The interface information.
      • getDpnForInterface

        public org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(java.lang.String interfaceName)
        Specified by:
        getDpnForInterface in interface IInterfaceManager
      • getDpnForInterface

        public org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intrface)
        Specified by:
        getDpnForInterface in interface IInterfaceManager
      • isExternalInterface

        public boolean isExternalInterface​(java.lang.String interfaceName)
        Description copied from interface: IInterfaceManager
        Determine whether an interface is external.
        Specified by:
        isExternalInterface in interface IInterfaceManager
        Parameters:
        interfaceName - The interface name.
        Returns:
        true if the interface is external, false if it isn't.