|
339 | 339 | - test_five['interface']['enabled'] == false
|
340 | 340 | - test_five['interface']['form_factor'] == 1000
|
341 | 341 | - test_five['interface']['mgmt_only'] == false
|
342 |
| - - test_five['interface']['lag'] == 14 |
| 342 | + - test_five['interface']['lag'] == 15 |
343 | 343 | - test_five['interface']['mode'] == 100
|
344 | 344 | - test_five['interface']['mtu'] == 1600
|
345 | 345 |
|
|
428 | 428 | - test_eight['interface']['enabled'] == false
|
429 | 429 | - test_eight['interface']['form_factor'] == 1000
|
430 | 430 | - test_eight['interface']['mgmt_only'] == false
|
431 |
| - - test_eight['interface']['lag'] == 14 |
| 431 | + - test_eight['interface']['lag'] == 15 |
432 | 432 | - test_eight['interface']['mode'] == 100
|
433 | 433 | - test_eight['interface']['mtu'] == 1600
|
434 | 434 |
|
| 435 | + - name: "9 - Create interface on VC child" |
| 436 | + netbox_device_interface: |
| 437 | + netbox_url: "http://localhost:32768" |
| 438 | + netbox_token: "0123456789abcdef0123456789abcdef01234567" |
| 439 | + data: |
| 440 | + device: Test Nexus Child One |
| 441 | + name: Ethernet1/1 |
| 442 | + form_factor: 1000Base-T (1GE) |
| 443 | + state: present |
| 444 | + register: test_nine |
| 445 | + |
| 446 | + - name: "9 - ASSERT" |
| 447 | + assert: |
| 448 | + that: |
| 449 | + - test_nine is changed |
| 450 | + - test_nine['msg'] == "interface Ethernet1/1 created" |
| 451 | + - test_nine['diff']['before']['state'] == 'absent' |
| 452 | + - test_nine['diff']['after']['state'] == 'present' |
| 453 | + - test_nine['interface']['name'] == "Ethernet1/1" |
| 454 | + - test_nine['interface']['device'] == 5 |
| 455 | + - test_nine['interface']['enabled'] == true |
| 456 | + - test_nine['interface']['form_factor'] == 1000 |
| 457 | + |
435 | 458 | ##
|
436 | 459 | ##
|
437 | 460 | ### NETBOX_IP_ADDRESS
|
|
615 | 638 | - test_eight['msg'] == "ip_address 10.10.1.30/16 created"
|
616 | 639 | - test_eight['ip_address']['address'] == "10.10.1.30/16"
|
617 | 640 | - test_eight['ip_address']['family'] == 4
|
618 |
| - - test_eight['ip_address']['interface'] == 1 |
| 641 | + - test_eight['ip_address']['interface'] == 2 |
619 | 642 | - test_eight['ip_address']['nat_inside'] == 7
|
620 | 643 | - test_eight['ip_address']['vrf'] == 1
|
621 | 644 |
|
|
640 | 663 | - test_nine['msg'] == "ip_address 10.10.200.30/16 created"
|
641 | 664 | - test_nine['ip_address']['address'] == "10.10.200.30/16"
|
642 | 665 | - test_nine['ip_address']['family'] == 4
|
643 |
| - - test_nine['ip_address']['interface'] == 2 |
| 666 | + - test_nine['ip_address']['interface'] == 3 |
644 | 667 |
|
645 | 668 | - name: "10 - Create IP address on GigabitEthernet2 - test100 - State: new"
|
646 | 669 | netbox_ip_address:
|
|
664 | 687 | - test_ten['msg'] == "ip_address 10.10.0.1/16 created"
|
665 | 688 | - test_ten['ip_address']['address'] == "10.10.0.1/16"
|
666 | 689 | - test_ten['ip_address']['family']['value'] == 4
|
667 |
| - - test_ten['ip_address']['interface']['id'] == 2 |
| 690 | + - test_ten['ip_address']['interface']['id'] == 3 |
668 | 691 |
|
669 | 692 | - name: "11 - Create IP address on GigabitEthernet2 - test100 - State: present"
|
670 | 693 | netbox_ip_address:
|
|
706 | 729 | - not test_twelve['changed']
|
707 | 730 | - test_twelve['msg'] == "ip_address 192.168.100.2/24 already exists"
|
708 | 731 | - test_twelve['ip_address']['address'] == "192.168.100.2/24"
|
709 |
| - - test_twelve['ip_address']['interface'] == 2 |
| 732 | + - test_twelve['ip_address']['interface'] == 3 |
710 | 733 |
|
711 | 734 | - name: "13 - Duplicate - 192.168.100.2/24"
|
712 | 735 | netbox_ip_address:
|
|
745 | 768 | - test_fourteen['msg'] == "ip_address 10.188.1.100/24 created"
|
746 | 769 | - test_fourteen['ip_address']['address'] == "10.188.1.100/24"
|
747 | 770 | - test_fourteen['ip_address']['family'] == 4
|
748 |
| - - test_fourteen['ip_address']['interface'] == 3 |
| 771 | + - test_fourteen['ip_address']['interface'] == 4 |
749 | 772 |
|
750 | 773 | - name: "15 - Create IP address with no mask - State: Present"
|
751 | 774 | netbox_ip_address:
|
|
0 commit comments