Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makerancidconf default bug #1204

Open
ollyg opened this issue Apr 30, 2024 · 3 comments
Open

makerancidconf default bug #1204

ollyg opened this issue Apr 30, 2024 · 3 comments

Comments

@ollyg
Copy link
Member

ollyg commented Apr 30, 2024

MakeRancidConf , seems to work great, expect when I tried to change "default_group: default" parameter to something else . When I run netdisco-do makerancidconf -D , it still create a group called "default"

@ollyg
Copy link
Member Author

ollyg commented Apr 30, 2024

from elomante on IRC

@inphobia
Copy link
Member

can't reproduce this with 2.076004.

copied rancid's etc dir to /tmp/testranc/etc/ & created /tmp/testranc/var/ with the right subdirs but no files & ran just fine. perhaps a permission or config issue?

i did notice tried to change "default_group: default" where default is not in single quotes (it is in the manpage & my config).

on my test netdisco setup:

rancid:
  rancid_cvsroot:  '/tmp/testranc/var'         # default
  rancid_conf:     '/tmp/testranc/etc'         # default
  down_age:        '1 day'                      # default
  delimiter:       ';'                          # default
  default_group:   'hk'                         # default
  vendormap:
    cisco-sb:      'group:grp-ciscosb'
  groups:
    hk:            'group:grp-hk-core'
    aerohive:      'group:grp-hiveos'
    rwzi:          'group:grp-ciscosb'
  by_hostname:     'any'
  by_ip:           'group:grp-ciscosb'

& netdisco do output: router.db for "hk" & "rwzi" were created. disregard the rest, since not everything is in sync with actual network as it is?

testdisc@linux005:~> netdisco-do makerancidconf -D
[7387] 2024-05-10 09:50:50  info App::Netdisco version 2.076004 loaded.
[7387] 2024-05-10 09:50:50  info makerancidconf:  started at Fri May 10 11:50:50 2024
[7387] 2024-05-10 09:50:50 debug makerancidconf: running with timeout 600s
[7387] 2024-05-10 09:50:50 debug //// CHECK \\\\ phase
[7387] 2024-05-10 09:50:50 debug ⮕ worker Internal::BackendFQDN p1000000
[7387] 2024-05-10 09:50:50 debug ⮕ worker Internal::SNMPFastDiscover p1000000
[7387] 2024-05-10 09:50:50 debug running with configured SNMP timeouts
[7387] 2024-05-10 09:50:50 debug //// MAIN \\\\ phase
[7387] 2024-05-10 09:50:50 debug ⮕ worker MakeRancidConf p0
[7387] 2024-05-10 09:50:50 debug trying rancid configuration file /tmp/testranc/etc/rancid.types.base
[7387] 2024-05-10 09:50:50 debug trying rancid configuration file /tmp/testranc/etc/rancid.types.conf
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.35: citrix doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.1.1.2: unknown doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.17: pulsesecure doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.45.12.249: aerohive doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.26: fortinet doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.65: vmware doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.198: aruba doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.254.195: aruba doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.93.19.1: oneaccess doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.40.252.10: aerohive doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug  skipping 10.45.12.247: aerohive doesn't exist in rancid's vendor list
[7387] 2024-05-10 09:50:50 debug ⬅ (done) Wrote rancid configuration.
[7387] 2024-05-10 09:50:50  info makerancidconf: finished at Fri May 10 11:50:50 2024
[7387] 2024-05-10 09:50:50  info makerancidconf: status done: Wrote rancid configuration.

@alkalinelito
Copy link

Hi, I ran into the same issue.
@inphobia that works because you also have defined "hk" group in "groups" .
Default group is supposed used when no device is matched in groups, or if there are no groups defined.
Remove the groups and change the default group name, and it will create a "default" named folder , instead of the specified name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants