Module: Junos::Ez::StaticRoutes
- Defined in:
- lib/junos-ez/system/st_routes.rb
Defined Under Namespace
Classes: Provider
Constant Summary collapse
- PROPERTIES =
[ :gateway, # next-hop gateway, could be single or Array :metric, # number or nil :action, # one-of [ :reject, :discard, :receive ] :active, # flag [ true, nil | false ] :retain, # no-flag [ nil, true, false ] :install, # no-flag [ nil, true, false ] :readvertise, # no-flag [ nil, true, false ] :resolve, # no-flag [ nil, true, false ] ]
Class Method Summary collapse
Class Method Details
.Provider(ndev, varsym) ⇒ Object
14 15 16 17 18 |
# File 'lib/junos-ez/system/st_routes.rb', line 14 def self.Provider( ndev, varsym ) newbie = Junos::Ez::StaticRoutes::Provider.new( ndev ) newbie.properties = Junos::Ez::Provider::PROPERTIES + PROPERTIES Junos::Ez::Provider.attach_instance_variable( ndev, varsym, newbie ) end |