Class: Puppet::Provider::Radius::CiscoNexus

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/provider/radius/cisco_nexus.rb

Overview

Basic implementation for the radius type using the Resource API.

Instance Method Summary collapse

Instance Method Details

#canonicalize(_context, resources) ⇒ Object



23
24
25
# File 'lib/puppet/provider/radius/cisco_nexus.rb', line 23

def canonicalize(_context, resources)
  resources
end

#get(_context, _names = nil) ⇒ Object

NOTE that we just return default name



28
29
30
31
32
33
34
# File 'lib/puppet/provider/radius/cisco_nexus.rb', line 28

def get(_context, _names=nil)
  radius = []
  radius << {
    name: 'default'
  }
  radius
end

#set(context, _changes) ⇒ Object

radius does nothing on NX-OS as no option to enable the feature from this level



19
20
21
# File 'lib/puppet/provider/radius/cisco_nexus.rb', line 19

def set(context, _changes)
  context.notice("No operations for managing 'radius', use 'radius_global'")
end