ConfigurePrefixList

class pytanga.helpers.Cisco.xe.prefix.ConfigurePrefixList(name, replace=False, step=5)

Bases: object

Prefix List configuration helper Class

Parameters
  • name (string) – the prefix list name

  • replace (string) – set to config replace

  • step (integer) – The sequence step for prefix list creation defaults 5

addPrefix(action, network, seq=None, le=None, ge=None)

Add a prefix to the prefix List

Parameters
  • action (string) – The prefix action should be in [“permit” , “deny”]

  • network (string) – The network

  • seq (integer, optional) – The prefix sequence

getPrefixList()
Returns

The prefixList Component

Return type

prefixeslistsComponent

exception pytanga.helpers.Cisco.xe.prefix.ConfigurePrefixListError

Bases: Exception