Interface & Security Zones

Interact with physical/logical interfaces and security zones.

EtherChannels

class firepyer.Fdm

Interfaces

class firepyer.Fdm
get_interfaces(name='')

Gets all Interfaces or a single Interface if a name is provided

Parameters

name (str, optional) – The name of the Interface to find, defaults to ‘’

Returns

A list of all Interfaces if no name is provided, or a dict of the single Interface with the given name

Return type

list|dict

Security Zones

class firepyer.Fdm
create_security_zone(name, description='', interfaces=[], phy_interfaces=[], mode='ROUTED')

Creates a security zone

Parameters
  • name – str The name of the Security Zone

  • description – str Description

  • interfaces – list The logical names of any Interfaces to be part of this Security Zone e.g. inside

  • phy_interfaces – list The physical names of any Interfaces to be part of this Security Zone e.g. GigabitEthernet0/0

  • mode – str The mode of the Security Zone, either ROUTED or PASSIVE

get_security_zones(name='')

Gets all SecurityZones or a single SecurityZone if a name is provided

Parameters

name (str, optional) – The name of the SecurityZone to find, defaults to ‘’

Returns

A list of all SecurityZones if no name is provided, or a dict of the single SecurityZone with the given name

Return type

list|dict

Sub-Interfaces

class firepyer.Fdm