Class NeutronUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean createPortStatus​(java.lang.String uuid, java.lang.String portStatus, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      Create a Neutron Port status entry in the operational data store.
      static boolean deletePortStatus​(java.lang.String uuid, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      Delete a Neutron Port status entry from the operational data store.
      static <T extends org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.NetworkTypeBase>
      java.lang.String
      getSegmentationIdFromNeutronNetwork​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.networks.attributes.networks.Network network, java.lang.Class<T> networkType)  
      static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getVpnMapRouterIdsListUuid​(@Nullable java.util.List<RouterIds> routerIds)  
      static boolean isPortVnicTypeNormal​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port)  
      static boolean isUuid​(java.lang.String possibleUuid)  
      static boolean updatePortStatus​(java.lang.String uuid, java.lang.String portStatus, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      Update a Neutron Port status entry in the operational data store.
      • Methods inherited from class java.lang.Object

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

      • createPortStatus

        public static boolean createPortStatus​(java.lang.String uuid,
                                               java.lang.String portStatus,
                                               org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
        Create a Neutron Port status entry in the operational data store.
        Parameters:
        uuid - The uuid of the Neutron port
        portStatus - value to set the status (see constants above)
        dataBroker - DataBroker instance
        Returns:
        true if transaction submitted successfully
      • updatePortStatus

        public static boolean updatePortStatus​(java.lang.String uuid,
                                               java.lang.String portStatus,
                                               org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
        Update a Neutron Port status entry in the operational data store.
        Parameters:
        uuid - The uuid of the Neutron port
        portStatus - value to set the status (see constants above)
        dataBroker - DataBroker instance
        Returns:
        true if transaction submitted successfully
      • deletePortStatus

        public static boolean deletePortStatus​(java.lang.String uuid,
                                               org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
        Delete a Neutron Port status entry from the operational data store.
        Parameters:
        uuid - The uuid of the Neutron port
        dataBroker - DataBroker instance
        Returns:
        true if transaction submitted successfully
      • isPortVnicTypeNormal

        public static boolean isPortVnicTypeNormal​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port)
      • getSegmentationIdFromNeutronNetwork

        public static <T extends org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.NetworkTypeBase> java.lang.String getSegmentationIdFromNeutronNetwork​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.networks.attributes.networks.Network network,
                                                                                                                                                                                java.lang.Class<T> networkType)
      • isUuid

        public static boolean isUuid​(java.lang.String possibleUuid)
      • getVpnMapRouterIdsListUuid

        public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getVpnMapRouterIdsListUuid​(@Nullable java.util.List<RouterIds> routerIds)