<commit_before>package org.opendaylight.ovsdb.sal.configuration;

import java.util.List;
import java.util.Map;

import org.opendaylight.controller.sal.core.Node;

/**
 * @file IPluginInConfigurationService.java
 *
 */
public interface IPluginInNetworkConfigurationService {

    /**
     * Create a Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     */
    public boolean createBridgeDomain(Node node, String bridgeIdentifier) throws Throwable;

    /**
     * Delete a Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     */
    public boolean deleteBridgeDomain(Node node, String bridgeIdentifier);

    /**
     * Returns the configured Bridge Domains
     *
     * @param node Node serving this configuration service
     * @return Bridge Domains
     */
    public List<String> getBridgeDomains(Node node);

    /**
     * add Bridge Domain Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param configs Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean addBridgeDomainConfig(Node node, String bridgeIdentifier, Map <String, String> config);

    /**
     * Delete Bridge Domain Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param configs Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean removeBridgeDomainConfig(Node node, String bridgeIdentifier, Map <String, String> config);

    /**
     * Returns Bridge Domain Configurations
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @return Bridge Domain configurations
     */

    public Map <String, String> getBridgeDomainConfigs(Node node, String bridgeIdentifier);

    /**
     * Create a Bridge Connector
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean createBridgeConnector(Node node, String bridgeConnectorIdentifier);

    /**
     * Delete a Bridge Connector
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean deleteBridgeConnector(Node node, String bridgeConnectorIdentifier);

    /**
     * Add/Associate BridgeConnectors on a given Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean associateBridgeConnector(Node node, String bridgeIdentifier, String bridgeConnectorIdentifier);

    /**
     * Add/Associate BridgeConnectors on a given Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean disassociateBridgeConnector(Node node, String bridgeIdentifier, String bridgeConnectorIdentifier);

    /**
     * add Bridge Connector Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     * @param config Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean addBridgeConnectorConfig(Node node, String bridgeConnectorIdentifier, Map <String, String> config);

    /**
     * Delete Bridge Connector Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     * @param config Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean removeBridgeConnectorConfig(Node node, String bridgeConnectorIdentifier, Map <String, String> config);

    /**
     * Returns Bridge Connector Configurations
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of a Bridge Connector
     * @return Bridge Connector configurations
     */
    public Map <String, String> getBridgeConnectorConfigs(Node node, String bridgeConnectorIdentifier);
    
    /**
     * Create a Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param portIdentifier String representation of a user defined Port Name
     */
	public boolean addPort(Node node, String bridgeIdentifier, String portIdentifier) throws Throwable;

    /**
     * Generic Configuration Event/Command. It is not practically possible to define all the possible combinations
     * of configurations across various plugins. Hence having a generic event/command will help bridge the gap until
     * a more abstracted explicit call is defined in Configuration Service.
     */
    public Object genericConfigurationEvent(Node node, Map <String, String> config);
}<commit_msg>whitespace formatting fix<commit_after>package org.opendaylight.ovsdb.sal.configuration;

import java.util.List;
import java.util.Map;

import org.opendaylight.controller.sal.core.Node;

/**
 * @file IPluginInConfigurationService.java
 *
 */
public interface IPluginInNetworkConfigurationService {

    /**
     * Create a Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     */
    public boolean createBridgeDomain(Node node, String bridgeIdentifier) throws Throwable;

    /**
     * Delete a Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     */
    public boolean deleteBridgeDomain(Node node, String bridgeIdentifier);

    /**
     * Returns the configured Bridge Domains
     *
     * @param node Node serving this configuration service
     * @return Bridge Domains
     */
    public List<String> getBridgeDomains(Node node);

    /**
     * add Bridge Domain Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param configs Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean addBridgeDomainConfig(Node node, String bridgeIdentifier, Map <String, String> config);

    /**
     * Delete Bridge Domain Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param configs Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean removeBridgeDomainConfig(Node node, String bridgeIdentifier, Map <String, String> config);

    /**
     * Returns Bridge Domain Configurations
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @return Bridge Domain configurations
     */

    public Map <String, String> getBridgeDomainConfigs(Node node, String bridgeIdentifier);

    /**
     * Create a Bridge Connector
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean createBridgeConnector(Node node, String bridgeConnectorIdentifier);

    /**
     * Delete a Bridge Connector
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean deleteBridgeConnector(Node node, String bridgeConnectorIdentifier);

    /**
     * Add/Associate BridgeConnectors on a given Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean associateBridgeConnector(Node node, String bridgeIdentifier, String bridgeConnectorIdentifier);

    /**
     * Add/Associate BridgeConnectors on a given Bridge Domain
     *
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param bridgeConnectorIdentifier String representation of the node connector.
     */
    public boolean disassociateBridgeConnector(Node node, String bridgeIdentifier, String bridgeConnectorIdentifier);

    /**
     * add Bridge Connector Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     * @param config Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean addBridgeConnectorConfig(Node node, String bridgeConnectorIdentifier, Map <String, String> config);

    /**
     * Delete Bridge Connector Configuration
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of the node connector.
     * @param config Map representation of ConfigName and Configuration Value in Strings.
     */
    public boolean removeBridgeConnectorConfig(Node node, String bridgeConnectorIdentifier, Map <String, String> config);

    /**
     * Returns Bridge Connector Configurations
     *
     * @param node Node serving this configuration service
     * @param bridgeConnectorIdentifier String representation of a Bridge Connector
     * @return Bridge Connector configurations
     */
    public Map <String, String> getBridgeConnectorConfigs(Node node, String bridgeConnectorIdentifier);

    /**
     * Create a Port Attached to a Bridge 
     * Ex. ovs-vsctl add-port br0 vif0
     * @param node Node serving this configuration service
     * @param bridgeDomainIdentifier String representation of a Bridge Domain
     * @param portIdentifier String representation of a user defined Port Name
     */
    public boolean addPort(Node node, String bridgeIdentifier, String portIdentifier) throws Throwable;

    /**
     * Generic Configuration Event/Command. It is not practically possible to define all the possible combinations
     * of configurations across various plugins. Hence having a generic event/command will help bridge the gap until
     * a more abstracted explicit call is defined in Configuration Service.
     */
    public Object genericConfigurationEvent(Node node, Map <String, String> config);
}
{'fraction_non_alphanumeric': 0.05647163120567376, 'fraction_numerical': 0.0001773049645390071, 'mean_word_length': 3.5124, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3026602', 'n_tokens_mistral': 2516, 'n_tokens_neox': 2452, 'n_words': 1048}