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¶
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
= {'100m': 'ethernet-100m', '10m': 'ethernet-10m', '1g': 'ethernet-1g', 'auto': 'auto-negotiation'}¶
-