Skip to content

Commit

Permalink
✨ added new code to main
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurcadore committed Aug 30, 2024
1 parent 74ccb17 commit 7faf9ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 0 additions & 3 deletions docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ echo "Execute playbooks script..."

chmod +x /ansible/playbooks/playbooks.sh
/ansible/playbooks/playbooks.sh

# Keep the script running by tailing /dev/null
tail -f /dev/null
2 changes: 1 addition & 1 deletion docker/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user=root

[program:ansible]
command=/bin/bash -c "/usr/sbin/startup.sh"
autorestart=true
autorestart=false
startsecs=2
priority=10
stdout_logfile=/dev/stdout
Expand Down
6 changes: 3 additions & 3 deletions env/namespaces.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
NCDATA = 'http://www.intelbras.comnetconf/data:1.0'
NCDATA = 'http://www.intelbras.com/netconf/data:1.0'
NCDATA_C = '{' + NCDATA + '}'

NETCONFBASE = "urn:ietf:params:xml:ns:netconf:base:1.0"
NETCONFBASE_C = '{' + NETCONFBASE + '}'

NCCONFIG = "http://www.intelbras.comnetconf/config:1.0"
NCCONFIG = "http://www.intelbras.com/netconf/config:1.0"
NCCONFIG_C = '{' + NCCONFIG + '}'

NCACTION = "http://www.intelbras.comnetconf/action:1.0"
NCACTION = "http://www.intelbras.com/netconf/action:1.0"
NCACTION_C = '{' + NCACTION + '}'
8 changes: 6 additions & 2 deletions examples/switch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ hostname capacita-ansible

vlan 10
description VLAN-10-MANAGE
quit

interface Vlan-interface10
ip address 10.100.29.123 255.255.255.0
quit

local-user ansible
password simple capacitapass#123
authorization-attribute user-role network-admin
service-type ssh
quit

netconf ssh server enable

line vty 0 15
authentication-mode scheme
user-role network-admin
authentication-mode scheme
user-role network-admin
quit

ssh server enable
ssh user ansible service-type all authentication-type password
Expand Down

0 comments on commit 7faf9ee

Please sign in to comment.