summaryrefslogtreecommitdiffstats
path: root/ansible_collections/dellemc/enterprise_sonic/rebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/dellemc/enterprise_sonic/rebuild.sh')
-rwxr-xr-xansible_collections/dellemc/enterprise_sonic/rebuild.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/ansible_collections/dellemc/enterprise_sonic/rebuild.sh b/ansible_collections/dellemc/enterprise_sonic/rebuild.sh
new file mode 100755
index 000000000..0e17e52bf
--- /dev/null
+++ b/ansible_collections/dellemc/enterprise_sonic/rebuild.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+namespace=$(grep -w "namespace" galaxy.yml | awk '{print $2}')
+name=$(grep -w "name" galaxy.yml | awk '{print $2}')
+version=$(grep -w "version" galaxy.yml | awk '{print $2}')
+collection_file="$namespace-$name-$version.tar.gz"
+#echo "$collection_file"
+
+rm -f /root/ansible_log.log
+rm -rf /root/.ansible/collections/ansible_collections/dellemc/enterprise_sonic
+rm "$collection_file"
+ansible-galaxy collection build
+
+ansible-galaxy collection install "$collection_file" --force #-with-deps
+
+# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces.yaml -vvvv
+# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces_config.yaml -vvvv
+# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces_test.yaml -vvvv
+# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_extcommunities.yaml -vvvv
+# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_extcommunities_config.yaml -vvv
+# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/test.yml -vvvv
+# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_as_paths_config.yaml -vvvv