jnpr.junos.cfg.phyport

jnpr.junos.cfg.phyport.base

class jnpr.junos.cfg.phyport.base.PhyPortBase(junos, namevar=None, **kvargs)[source]

Bases: jnpr.junos.cfg.resource.Resource

[edit interfaces <name>]

Resource name: str
<name> is the interface-name (IFD), e.g. ‘ge-0/0/0’
PORT_DUPLEX = {'full': 'full-duplex', 'half': 'half-duplex'}
PROPERTIES = ['admin', 'description', 'speed', 'duplex', 'mtu', 'loopback', '$unit_count']

jnpr.junos.cfg.phyport.classic

class jnpr.junos.cfg.phyport.classic.PhyPortClassic(junos, namevar=None, **kvargs)[source]

Bases: jnpr.junos.cfg.phyport.base.PhyPortBase

jnpr.junos.cfg.phyport.switch

class jnpr.junos.cfg.phyport.switch.PhyPortSwitch(junos, namevar=None, **kvargs)[source]

Bases: jnpr.junos.cfg.phyport.base.PhyPortBase

PORT_SPEED = {'auto': 'auto-negotiation', '100m': 'ethernet-100m', '1g': 'ethernet-1g', '10m': 'ethernet-10m'}

Module contents

class jnpr.junos.cfg.phyport.PhyPort[source]

Bases: object