diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-01-19 17:14:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 17:14:32 -0500 |
commit | bf1580a3335e8c8218224fa497bb2b2930004185 (patch) | |
tree | b215df70a76afdc6455dc6bc1cd2e05f0c67d184 /test/integration/targets/ios_interface | |
parent | 4d58d16793962fb7186defa3f1a4db90a2aa2a69 (diff) | |
download | ansible-bf1580a3335e8c8218224fa497bb2b2930004185.tar.gz |
ios_l2_interface (#35054)
* Fix sending 'None' to device on ios
* Add ios_l2_interface module & tests
* Skip l2 tests on non-l2 images
* Allow test to continue on non-L2 hosts
Diffstat (limited to 'test/integration/targets/ios_interface')
3 files changed, 0 insertions, 81 deletions
diff --git a/test/integration/targets/ios_interface/tests/cli/basic.yaml b/test/integration/targets/ios_interface/tests/cli/basic.yaml index 7e0ea4f59c..e20d010405 100644 --- a/test/integration/targets/ios_interface/tests/cli/basic.yaml +++ b/test/integration/targets/ios_interface/tests/cli/basic.yaml @@ -1,39 +1,6 @@ --- - debug: msg="START ios_interface cli/basic.yaml on connection={{ ansible_connection }}" -- name: Run show version - ios_command: - commands: show version - authorize: yes - register: show_version_result - -- block: - - name: Set test interface to GigabitEthernet0/1 as we are on Cisco IOS - set_fact: test_interface=GigabitEthernet0/1 - - name: Set test interface 2 to GigabitEthernet0/2 as we are on Cisco IOS - set_fact: test_interface2=GigabitEthernet0/2 - when: "'Cisco IOS' in show_version_result.stdout[0]" - -- block: - - name: Set test interface to GigabitEthernet2 as we are on Cisco IOS-XE - set_fact: test_interface=GigabitEthernet2 - - name: Disable autonegotiation on GigabitEthernet2 - ios_config: - lines: - - no negotiation auto - parents: int GigabitEthernet2 - authorize: yes - - - name: Set test interface 2 to GigabitEthernet3 as we are on Cisco IOS-XE - set_fact: test_interface2=GigabitEthernet3 - - name: Disable autonegotiation on GigabitEthernet3 - ios_config: - lines: - - no negotiation auto - parents: int GigabitEthernet3 - authorize: yes - when: "'Cisco IOS-XE' in show_version_result.stdout[0]" - - name: Configure interface (setup) ios_interface: name: "{{ test_interface }}" diff --git a/test/integration/targets/ios_interface/tests/cli/intent.yaml b/test/integration/targets/ios_interface/tests/cli/intent.yaml index ec3a58c24e..6501408698 100644 --- a/test/integration/targets/ios_interface/tests/cli/intent.yaml +++ b/test/integration/targets/ios_interface/tests/cli/intent.yaml @@ -1,21 +1,6 @@ --- - debug: msg="START ios_interface cli/intent.yaml on connection={{ ansible_connection }}" -- name: Run show version - ios_command: - commands: show version - authorize: yes - register: show_version_result - -- name: Set test interface to GigabitEthernet0/2 if we are on Cisco IOS - set_fact: test_interface=GigabitEthernet0/2 - when: "'Cisco IOS' in show_version_result.stdout[0]" - -- name: Set test interface to GigabitEthernet2 if we are on Cisco IOS-XE - set_fact: test_interface=GigabitEthernet2 - when: "'Cisco IOS-XE' in show_version_result.stdout[0]" - - - name: Check intent arguments ios_interface: name: "{{ test_interface }}" diff --git a/test/integration/targets/ios_interface/tests/cli/net_interface.yaml b/test/integration/targets/ios_interface/tests/cli/net_interface.yaml index 244e4b1fd5..ef2b6e507a 100644 --- a/test/integration/targets/ios_interface/tests/cli/net_interface.yaml +++ b/test/integration/targets/ios_interface/tests/cli/net_interface.yaml @@ -4,39 +4,6 @@ # Add minimal testcase to check args are passed correctly to # implementation module and module run is successful. -- name: Run show version - ios_command: - commands: show version - authorize: yes - register: show_version_result - -- block: - - name: Set test interface to GigabitEthernet0/1 as we are on Cisco IOS - set_fact: test_interface=GigabitEthernet0/1 - - name: Set test interface 2 to GigabitEthernet0/2 as we are on Cisco IOS - set_fact: test_interface2=GigabitEthernet0/2 - when: "'Cisco IOS' in show_version_result.stdout[0]" - -- block: - - name: Set test interface to GigabitEthernet2 as we are on Cisco IOS-XE - set_fact: test_interface=GigabitEthernet2 - - name: Disable autonegotiation on GigabitEthernet2 - ios_config: - lines: - - no negotiation auto - parents: int GigabitEthernet2 - authorize: yes - - - name: Set test interface 2 to GigabitEthernet3 as we are on Cisco IOS-XE - set_fact: test_interface2=GigabitEthernet3 - - name: Disable autonegotiation on GigabitEthernet3 - ios_config: - lines: - - no negotiation auto - parents: int GigabitEthernet3 - authorize: yes - when: "'Cisco IOS-XE' in show_version_result.stdout[0]" - - name: Configure interface (setup) net_interface: name: "{{ test_interface }}" |