Class IpamModule


  • @Component
    public class IpamModule
    extends AbstractCommercialModule
    IP address manager module definition. This module allows managing addressing space and subnetting for IPv4 and IPv6 networks.
    Author:
    Adrian Martinez <adrian.martinez@kuwaiba.org>
    • Field Detail

      • RELATIONSHIP_IPAMHASADDRESS

        public static final String RELATIONSHIP_IPAMHASADDRESS
        This relationship is used to connect a GenericPort with an IP address
        See Also:
        Constant Field Values
      • RELATIONSHIP_IPAMBELONGSTOVLAN

        public static final String RELATIONSHIP_IPAMBELONGSTOVLAN
        This relationship is used to connect a VLAN with a Subnet
        See Also:
        Constant Field Values
      • RELATIONSHIP_IPAMBELONGSTOVRFINSTACE

        public static final String RELATIONSHIP_IPAMBELONGSTOVRFINSTACE
        This relationship is used to relate a VRF with a Subnet
        See Also:
        Constant Field Values
      • RELATIONSHIP_IPAMPORTRELATEDTOINTERFACE

        public static final String RELATIONSHIP_IPAMPORTRELATEDTOINTERFACE
        TODO: place this relationships in other place This relationship is used to relate a network element with extra logical configuration
        See Also:
        Constant Field Values
    • Constructor Detail

      • IpamModule

        public IpamModule()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getName

        public String getName()
        Description copied from class: AbstractModule
        Gets the module's name. Must be unique, otherwise, the system will only take last one loaded at application's startup
        Specified by:
        getName in class AbstractModule
        Returns:
        The module's name
      • configureModule

        public void configureModule​(MetadataEntityManager mem,
                                    ApplicationEntityManager aem,
                                    BusinessEntityManager bem)
        Description copied from class: AbstractModule
        This method initializes the module. Must be called before anything else, otherwise the other modules won't be able to use the persistence service.
        Overrides:
        configureModule in class AbstractModule
        Parameters:
        mem - The MetadataEntityManager instance. Might be null if not needed by the module
        aem - The ApplicationEntityManager instance. Might be null if not needed by the module
        bem - The BusinessEntityManager instance. Might be null if not needed by the module
      • getId

        public String getId()
        Description copied from class: AbstractModule
        A simple unique string that identifies the module so it is easier to refer to it in automated processes such as defining if a user can user certain functionality based on his/her privileges.
        Specified by:
        getId in class AbstractModule
        Returns:
      • getCategory

        public int getCategory()
        Description copied from class: AbstractModule
        Assigns the module a category, so it can be placed in menus and context actions. See CATEGORY_XXX for valid values.
        Specified by:
        getCategory in class AbstractModule
        Returns:
        The category.