arista-eosplus / rbeapi

Ruby client for Arista eAPI
BSD 3-Clause "New" or "Revised" License
16 stars 16 forks source link

snmp_users_set method contains fails to set all information #121

Open jerearista opened 8 years ago

jerearista commented 8 years ago

netdev/snmp.rb snmp_user_set fails in puppet-netdev with

Error: /Stage[main]/Main/Snmp_user[trapuser]: Could not evaluate: undefined local variable or method `running_config' for #<Rbeapi::Netdev::Snmp:0x007f8ecd64e750>
snmp_user { 'trapuser:v3':
  roles           => ['ops'],
  #version         => 'v3',
  enforce_privacy => true,
  localized_key   => false,
  auth            => 'sha',
  #password        => 'my_auth_phrase',
  password        => '59049ce9523878cbd1e930062e40d1848d2d80b8',
  privacy         => 'aes128',
  #private_key     => 'my_priv_phrase',
  private_key     => 'b2f0f1ce083aca9e50e33fe4e73982ac813b77c4',
}

This appears to be the last netdev api. Mayeb its time to update this and puppet-netdev to switch this to a newer-style rbeapi api.