networking_generic_switch.netconf_models package¶
Subpackages¶
- networking_generic_switch.netconf_models.openconfig package
- Subpackages
- networking_generic_switch.netconf_models.openconfig.interfaces package
- Submodules
- networking_generic_switch.netconf_models.openconfig.interfaces.aggregate module
- networking_generic_switch.netconf_models.openconfig.interfaces.ethernet module
- networking_generic_switch.netconf_models.openconfig.interfaces.interfaces module
- networking_generic_switch.netconf_models.openconfig.interfaces.types module
- Module contents
- networking_generic_switch.netconf_models.openconfig.lacp package
- networking_generic_switch.netconf_models.openconfig.network_instance package
- networking_generic_switch.netconf_models.openconfig.vlan package
- networking_generic_switch.netconf_models.openconfig.interfaces package
- Submodules
- networking_generic_switch.netconf_models.openconfig.constants module
- Module contents
- Subpackages
Submodules¶
networking_generic_switch.netconf_models.constants module¶
- class networking_generic_switch.netconf_models.constants.NetconfEditConfigOperation(*values)¶
Bases:
EnumRFC 6241 - <edit-config> operation attribute
- The “operation” attribute has one of the following values:
- merge: The configuration data identified by the element
containing this attribute is merged with the configuration at the corresponding level in the configuration datastore identified by the <target> parameter. This is the default behavior.
- replace: The configuration data identified by the element
containing this attribute replaces any related configuration in the configuration datastore identified by the <target> parameter. If no such configuration data exists in the configuration datastore, it is created. Unlike a <copy-config> operation, which replaces the entire target configuration, only the configuration actually present in the <config> parameter is affected.
- create: The configuration data identified by the element
containing this attribute is added to the configuration if and only if the configuration data does not already exist in the configuration datastore. If the configuration data exists, an <rpc-error> element is returned with an <error-tag> value of “data-exists”.
- delete: The configuration data identified by the element
containing this attribute is deleted from the configuration if and only if the configuration data currently exists in the configuration datastore. If the configuration data does not exist, an <rpc-error> element is returned with an <error-tag> value of “data-missing”.
- remove: The configuration data identified by the element
containing this attribute is deleted from the configuration if the configuration data currently exists in the configuration datastore. If the configuration data does not exist, the “remove” operation is silently ignored by the server.
- CREATE = 'create'¶
- DELETE = 'delete'¶
- MERGE = 'merge'¶
- REMOVE = 'remove'¶
- REPLACE = 'replace'¶
networking_generic_switch.netconf_models.utils module¶
- networking_generic_switch.netconf_models.utils.config_to_xml(config)¶
- networking_generic_switch.netconf_models.utils.txt_subelement(parent, tag, text, *args, **kwargs)¶