Module: Junos::Ez::IPports
- Defined in:
- lib/junos-ez/ip_ports.rb
Defined Under Namespace
Classes: Provider
Constant Summary collapse
- PROPERTIES =
[ :admin, # [:up, :down] :description, # general description text :tag_id, # VLAN tag-id for vlan-tag enabled ports :mtu, # MTU value as number :address, # ip/prefix as text, e.g. "192.168.10.22/24" :acl_in, # input ACL name :acl_out, # output ACL name ]
Class Method Summary collapse
Class Method Details
.Provider(ndev, varsym) ⇒ Object
16 17 18 19 20 |
# File 'lib/junos-ez/ip_ports.rb', line 16 def self.Provider( ndev, varsym ) newbie = Junos::Ez::IPports::Provider::CLASSIC.new( ndev ) newbie.properties = Junos::Ez::Provider::PROPERTIES + PROPERTIES Junos::Ez::Provider.attach_instance_variable( ndev, varsym, newbie ) end |