Class: Cisco::NodeUtil
- Inherits:
-
Object
show all
- Defined in:
- lib/cisco_node_utils/node_util.rb
Overview
NodeUtil - generic functionality for node utility subclasses to use
Direct Known Subclasses
AaaAuthenticationLogin, AaaAuthenticationLoginService, AaaAuthorizationService, Ace, Acl, DnsDomain, DomainName, EvpnVni, FabricpathGlobal, FabricpathTopo, Feature, Interface, InterfaceChannelGroup, InterfaceOspf, InterfacePortChannel, InterfaceServiceVni, NameServer, NtpConfig, NtpServer, OverlayGlobal, Pim, PimGroupList, PimRpAddress, Platform, PortChannelGlobal, RadiusGlobal, RadiusServer, RadiusServerGroup, RouterBgp, RouterBgpAF, RouterBgpNeighbor, RouterBgpNeighborAF, RouterOspf, RouterOspfVrf, SnmpCommunity, SnmpGroup, SnmpNotification, SnmpNotificationReceiver, SnmpServer, SnmpUser, SyslogServer, SyslogSettings, TacacsServer, TacacsServerGroup, TacacsServerHost, Vdc, Vlan, Vni, Vpc, Vrf, VrfAF, Vtp, VxlanVtep, VxlanVtepVni, Yum
Constant Summary
collapse
- @@node =
rubocop:disable Style/ClassVars We want this to be inherited to all child classes, it’s a singleton.
nil
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.config_get(*args) ⇒ Object
37
38
39
|
# File 'lib/cisco_node_utils/node_util.rb', line 37
def self.config_get(*args)
node.config_get(*args)
end
|
.config_get_default(*args) ⇒ Object
45
46
47
|
# File 'lib/cisco_node_utils/node_util.rb', line 45
def self.config_get_default(*args)
node.config_get_default(*args)
end
|
.config_set(*args) ⇒ Object
53
54
55
|
# File 'lib/cisco_node_utils/node_util.rb', line 53
def self.config_set(*args)
node.config_set(*args)
end
|
.node ⇒ Object
rubocop:enable Style/ClassVars
27
28
29
30
31
|
# File 'lib/cisco_node_utils/node_util.rb', line 27
def self.node
@@node ||= Cisco::Node.instance
end
|
Instance Method Details
#config_get(*args) ⇒ Object
41
42
43
|
# File 'lib/cisco_node_utils/node_util.rb', line 41
def config_get(*args)
node.config_get(*args)
end
|
#config_get_default(*args) ⇒ Object
49
50
51
|
# File 'lib/cisco_node_utils/node_util.rb', line 49
def config_get_default(*args)
node.config_get_default(*args)
end
|
#config_set(*args) ⇒ Object
57
58
59
|
# File 'lib/cisco_node_utils/node_util.rb', line 57
def config_set(*args)
node.config_set(*args)
end
|
#node ⇒ Object
33
34
35
|
# File 'lib/cisco_node_utils/node_util.rb', line 33
def node
self.class.node
end
|
#show(*args) ⇒ Object
61
62
63
|
# File 'lib/cisco_node_utils/node_util.rb', line 61
def show(*args)
node.show(*args)
end
|