Class SouthboundUtils


  • @Singleton
    public class SouthboundUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SouthboundUtils​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, BatchingUtils batchingUtils, InterfacemgrProvider interfacemgrProvider, org.opendaylight.infrautils.caches.CacheProvider cacheProvider)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAllPortsToBridge​(BridgeEntry bridgeEntry, InterfaceManagerCommonUtils interfaceManagerCommonUtils, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation> bridgeIid, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeNew)  
      void addPortToBridge​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface, java.lang.String portName)  
      static boolean bfdMonitoringEnabled​(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.port._interface.attributes.InterfaceBfd> interfaceBfds)  
      static boolean bfdMonitoringEnabled​(IfTunnel ifTunnel)  
      static boolean changeInBfdMonitoringDetected​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint> createTerminationPointInstanceIdentifier​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey nodekey, java.lang.String portName)  
      static java.lang.String generateOfTunnelName​(org.opendaylight.yangtools.yang.common.Uint64 dpId, IfTunnel ifTunnel)  
      static boolean ifBfdStatusNotEqual​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)  
      static boolean isInterfaceTypeTunnel​(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase> interfaceType)  
      static boolean isMonitorProtocolBfd​(IfTunnel ifTunnel)  
      static boolean isOfTunnel​(IfTunnel ifTunnel)  
      void removeTerminationEndPoint​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, java.lang.String interfaceName)  
      static void updateBfdParamtersForTerminationPoint​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, IfTunnel ifTunnel, java.lang.String portName, TypedWriteTransaction<Datastore.Configuration> transaction)  
      • Methods inherited from class java.lang.Object

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

      • SouthboundUtils

        @Inject
        public SouthboundUtils​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                               BatchingUtils batchingUtils,
                               InterfacemgrProvider interfacemgrProvider,
                               org.opendaylight.infrautils.caches.CacheProvider cacheProvider)
    • Method Detail

      • addPortToBridge

        public void addPortToBridge​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid,
                                    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface,
                                    java.lang.String portName)
      • addAllPortsToBridge

        public void addAllPortsToBridge​(BridgeEntry bridgeEntry,
                                        InterfaceManagerCommonUtils interfaceManagerCommonUtils,
                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation> bridgeIid,
                                        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeNew)
      • updateBfdParamtersForTerminationPoint

        public static void updateBfdParamtersForTerminationPoint​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid,
                                                                 IfTunnel ifTunnel,
                                                                 java.lang.String portName,
                                                                 TypedWriteTransaction<Datastore.Configuration> transaction)
      • createTerminationPointInstanceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint> createTerminationPointInstanceIdentifier​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey nodekey,
                                                                                                                                                                                                                                                              java.lang.String portName)
      • removeTerminationEndPoint

        public void removeTerminationEndPoint​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid,
                                              java.lang.String interfaceName)
      • ifBfdStatusNotEqual

        public static boolean ifBfdStatusNotEqual​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld,
                                                  org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
      • changeInBfdMonitoringDetected

        public static boolean changeInBfdMonitoringDetected​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld,
                                                            org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
      • bfdMonitoringEnabled

        public static boolean bfdMonitoringEnabled​(IfTunnel ifTunnel)
      • bfdMonitoringEnabled

        public static boolean bfdMonitoringEnabled​(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.port._interface.attributes.InterfaceBfd> interfaceBfds)
      • isMonitorProtocolBfd

        public static boolean isMonitorProtocolBfd​(IfTunnel ifTunnel)
      • generateOfTunnelName

        public static java.lang.String generateOfTunnelName​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                            IfTunnel ifTunnel)
      • isOfTunnel

        public static boolean isOfTunnel​(IfTunnel ifTunnel)
      • isInterfaceTypeTunnel

        public static boolean isInterfaceTypeTunnel​(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase> interfaceType)