diff --git a/plays/test.yaml b/plays/test.yaml index bc886d70213883d0d8d982f9e6b32a84eaed11c7..2fe522a48015dbad81ba148b94f9fe8812db6625 100644 --- a/plays/test.yaml +++ b/plays/test.yaml @@ -12,4 +12,4 @@ - name: Print output copy: content: "{{interfaces_info.stdout[0]}}" - dest: ~/onlab/{{inventory_hostname}}.txt + dest: ~/onlab/{{inventory_hostname}}/{{inventory_hostname}}.txt diff --git a/router1.txt b/router1/router1.txt similarity index 100% rename from router1.txt rename to router1/router1.txt diff --git a/router1_ip.txt b/router1/router1_ip.txt similarity index 100% rename from router1_ip.txt rename to router1/router1_ip.txt diff --git a/router1_mask.txt b/router1/router1_mask.txt similarity index 100% rename from router1_mask.txt rename to router1/router1_mask.txt diff --git a/router2/router2.txt b/router2/router2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b241739c7801d8b445629e23e3efd953cbfe18d4 --- /dev/null +++ b/router2/router2.txt @@ -0,0 +1,11 @@ +Codes: M - Manual static, A - AAA download, N - IP NAT, D - DHCP, + G - GPRS, V - Crypto VPN, C - CASA, P - Channel interface processor, + B - BootP, S - Service selection gateway + DN - Default Network, T - Tracking object + L - TL1, E - OER, I - iEdge + D1 - Dot1x Vlan Network, K - MWAM Route + PP - PPP default route, MR - MRIPv6, SS - SSLVPN + H - IPe Host, ID - IPe Domain Broadcast + U - User GPRS, TE - MPLS Traffic-eng, LI - LIIN + IR - ICMP Redirect +Codes in []: A - active, N - non-active, B - BFD-tracked, D - Not Tracked, P - permanent \ No newline at end of file diff --git a/sort.sh b/sort.sh index 6ac546206893a606b2c6d9d1553e8cd056e01cda..8cc53c7c4d6725b9f243f71342fbb19c45600175 100755 --- a/sort.sh +++ b/sort.sh @@ -1,2 +1,2 @@ -cat router1.txt | grep "^M" | cut -d' ' -f3 | cut -d'/' -f1 >> router1_ip.txt -cat router1.txt | grep "^M" | cut -d' ' -f3 | cut -d'/' -f2 >> router1_mask.txt +cat ./router1/router1.txt | grep "^M" | cut -d' ' -f3 | cut -d'/' -f1 >> ./router1/router1_ip.txt +cat ./router1/router1.txt | grep "^M" | cut -d' ' -f3 | cut -d'/' -f2 >> ./router1/router1_mask.txt