pyhpecw7.features.l2vpn module

Manage L2VPN on HPCOM7 devices.

class pyhpecw7.features.l2vpn.L2VPN(device)[source]

Bases: object

Enable/Disable L2VPN globally on a HP Comware 7 switch.

Parameters:device (HPCOM7) – connected instance of a pyhpecw7.comware.HPCOM7 object.
device

connected instance of a pyhpecw7.comware.HPCOM7 object.

Type:HPCOM7
disable(stage=False)[source]

Stage or execute a config object to disable L2VPN

Parameters:stage (bool) – whether to stage the commands or execute immediately
Returns:True if stage=True and successfully staged etree.Element XML response if immediate execution
enable(stage=False)[source]

Stage or execute a config object to enable L2VPN

Parameters:stage (bool) – whether to stage the commands or execute immediately
Returns:True if stage=True and successfully staged etree.Element XML response if immediate execution
get_config()[source]

Get current L2VPN global configuration state.