/usr/lib/python2.7/dist-packages/jnpr/junos/cfg/phyport/__init__.py is in python-junos-eznc 2.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from jnpr.junos.cfg import Resource
from jnpr.junos.cfg.phyport.classic import PhyPortClassic
from jnpr.junos.cfg.phyport.switch import PhyPortSwitch
__all__ = ['PhyPort']
class PhyPort(object):
def __new__(cls, dev, name=None):
supercls = {
'CLASSIC': PhyPortClassic,
'SWITCH': PhyPortSwitch,
}.get(dev.facts['ifd_style'])
newcls = type(cls.__name__, (supercls,), {})
return newcls(dev, name)
|