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

net.cli not found but im using napalm proxy #51948

Open
ghost opened this issue Mar 2, 2019 · 2 comments
Open

net.cli not found but im using napalm proxy #51948

ghost opened this issue Mar 2, 2019 · 2 comments
Labels
Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged
Milestone

Comments

@ghost
Copy link

ghost commented Mar 2, 2019

tried using net.cli for an event and it returned "return": "'net.cli' is not available.", below you will find the event, the proxy state file for sj1-e2, and the state file for net.cli. i also tried to run sudo salt sj1-e2 net.cli "show version" from the salt master cli got the same results those are also below

even if i do get this working i may run into the same issue as #51482

salt/job/20190302092456946837/ret/sj1-e2    {
    "_stamp": "2019-03-02T17:24:57.149858",
    "cmd": "_return",
    "fun": "net.cli",
    "fun_args": [
        {
            "__kwarg__": true,
            "set protocols isis interface xe-0/0/7 passive": null,
            "set protocols rsvp interface xe-0/0/7 disable": null
        }
    ],
    "id": "sj1-e2",
    "jid": "20190302092456946837",
    "out": "nested",
    "retcode": 254,
    "return": "'net.cli' is not available.",
    "success": false

sj1-e2_proxy:
 proxytype: napalm
 driver: junos
 host: 10.10.10.10
 username: SALT
 password: pass
 port: 22


drain_circuit:
  local.net.cli:
   - tgt: sj1-e2
   - args:
     - set protocols rsvp interface xe-0/0/7 disable
     - set protocols isis interface xe-0/0/7 passive

saltmaster % sudo salt sj1-e2 net.cli "show version"
sj1-e2:
    'net.cli' is not available.



 salt --versions-report
Salt Version:
           Salt: 2019.2.0

Dependency Versions:
           cffi: 1.11.5
       cherrypy: Not Installed
       dateutil: 2.4.2
      docker-py: Not Installed
          gitdb: 0.6.4
      gitpython: 1.0.1
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: 1.0.3
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: 2.19
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.12 (default, Dec  4 2017, 14:50:18)
   python-gnupg: 0.3.8
         PyYAML: 3.13
          PyZMQ: 17.1.2
           RAET: Not Installed
          smmap: 0.9.0
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.2.5

System Versions:
           dist: Ubuntu 16.04 xenial
         locale: ISO-8859-1
        machine: x86_64
        release: 4.4.0-124-generic
         system: Linux
        version: Ubuntu 16.04 xenial

@garethgreenaway garethgreenaway added this to the Blocked milestone Mar 5, 2019
@garethgreenaway garethgreenaway added the Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged label Mar 5, 2019
@garethgreenaway
Copy link
Contributor

@mirceaulinic Any ideas on this one?

@ghost
Copy link
Author

ghost commented Mar 5, 2019

@garethgreenaway @mirceaulinic per our conversation from slack the set interface.....isis/rsvp commands wont work as net.cli isnt for set commands just show/operational commands

but this should be working for the show versions command from above which isnt working

saltmaster % sudo salt sj1-e2 net.cli "show version"
sj1-e2:
    'net.cli' is not available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged
1 participant