3 dnl Creates a directory tree for use with "interface-reconfigure --root-dir".
6 interface-reconfigure \
7 InterfaceReconfigure.py \
8 InterfaceReconfigureBridge.py \
9 InterfaceReconfigureVswitch.py
11 cp $top_srcdir/xenserver/opt_xensource_libexec_$script $script
15 cat > etc/xensource-inventory <<EOF
16 PRODUCT_BRAND='XenServer'
17 PRODUCT_NAME='xenenterprise'
18 PRODUCT_VERSION='5.5.0'
20 KERNEL_VERSION='2.6.18-128.1.6.el5.xs5.5.0.505.1024xen'
22 INSTALLATION_DATE='2010-02-10 16:45:28.748345'
23 PRIMARY_DISK='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c'
24 BACKUP_PARTITION='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c-part2'
25 INSTALLATION_UUID='852ee692-71b4-439e-abfb-0eba72dc85f0'
26 CONTROL_DOMAIN_UUID='44e6b66e-3074-4a3c-bbcd-756d845a3b56'
27 DEFAULT_SR_PHYSDEVS='/dev/sda3'
29 MANAGEMENT_INTERFACE='xenbr2'
32 mkdir -p etc/xensource
33 echo vswitch > etc/xensource/network.conf
45 usr/sbin/ovs-vlan-bug-workaround
47 mkdir -p `dirname $utility`
48 cat > $utility <<'EOF'
55 mkdir -p etc/sysconfig/network-scripts
57 mkdir -p sys/class/net/${1}
58 echo ${2} > sys/class/net/${1}/address
59 echo ${3} > sys/class/net/${1}/tx_queue_len
60 if test ${1} = eth1; then
61 # No VLAN acceleration.
62 echo 0x829 > sys/class/net/${1}/features
64 # Supports VLAN acceleration.
65 echo 0x10b89 > sys/class/net/${1}/features
67 mkdir sys/class/net/${1}/device
68 ln -s ../../../bus/pci/drivers/e1000 sys/class/net/${1}/device/driver
70 : >> etc/sysconfig/network-scripts/ifcfg-${1}
73 configure_netdev lo 00:00:00:00:00:00 0
74 configure_netdev eth0 00:22:19:22:4b:af 1000
75 configure_netdev eth1 00:22:19:22:4b:b1 1000
76 configure_netdev eth2 00:15:17:a0:29:80 1000
77 configure_netdev eth3 00:15:17:a0:29:81 1000
78 configure_netdev eth4 00:1b:21:29:ce:51 1000
81 cat > var/xapi/network.dbcache <<'EOF'
82 <?xml version="1.0" ?>
83 <xenserver-network-configuration>
84 <pif ref="OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6">
86 <tunnel_access_PIF_of/>
91 OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
94 bd62a141-091f-3909-e334-0334f67ff3be
112 <ip_configuration_mode>
114 </ip_configuration_mode>
124 </currently_attached>
129 OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5
132 <pif ref="OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806">
134 <tunnel_access_PIF_of/>
142 df8d35c2-cc3a-a623-7065-d987a29feb75
160 <ip_configuration_mode>
162 </ip_configuration_mode>
172 </currently_attached>
177 OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531
180 <pif ref="OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768">
182 <tunnel_access_PIF_of/>
187 OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
190 2f87fc95-5ab4-571a-2487-3f4ac1985663
208 <ip_configuration_mode>
210 </ip_configuration_mode>
220 </currently_attached>
225 OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d
228 <pif ref="OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e">
230 <tunnel_access_PIF_of/>
238 d2dfdab3-daf4-afea-f055-a25a0d24d714
244 OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
256 <ip_configuration_mode>
258 </ip_configuration_mode>
268 </currently_attached>
273 OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47
276 <pif ref="OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc">
279 OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
282 <tunnel_access_PIF_of/>
290 f4ba396e-a993-a592-5fbc-a1d566afb59e
308 <ip_configuration_mode>
310 </ip_configuration_mode>
320 </currently_attached>
325 OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32
328 <pif ref="OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15">
330 <tunnel_access_PIF_of/>
338 646ca9a1-36ad-e2f9-3ecc-1e5622c201c2
356 <ip_configuration_mode>
358 </ip_configuration_mode>
368 </currently_attached>
373 OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe
376 <pif ref="OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3">
378 <tunnel_access_PIF_of/>
386 3941edd2-865b-8dd8-61f0-199f5e1fa652
392 OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
404 <ip_configuration_mode>
406 </ip_configuration_mode>
416 </currently_attached>
421 OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17
424 <pif ref="OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11">
427 OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
430 <tunnel_access_PIF_of/>
438 6c0327a9-afa3-fc19-6798-a1bfe20095ed
456 <ip_configuration_mode>
458 </ip_configuration_mode>
467 OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
472 </currently_attached>
477 OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a
480 <bond ref="OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e">
482 OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
485 dad825f1-6d81-386e-849c-5589281e53e1
489 OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
492 OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
496 <vlan ref="OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c">
498 OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
501 841814da-d0d2-9da4-0b2e-b6143480bbfb
504 OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
507 <vlan ref="OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297">
509 OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
512 399279a2-5ccd-5368-9af3-8622a1f1ac82
515 OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
518 <network ref="OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47">
521 OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
529 99be2da4-6c33-6f8e-49ea-3bc592fe3c85
532 <network ref="OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32">
535 OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
543 2902ae1b-8013-897a-b697-0b200ea3aaa5
546 <network ref="OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a">
549 OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
557 45cbbb43-113d-a712-3231-c6463f253cef
560 <network ref="OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d">
563 OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
571 99f8771a-645a-26a3-e06c-30a401f1d009
574 <network ref="OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe">
577 OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15
585 d08c8749-0c8f-9e8d-ce25-fd364661ee99
588 <network ref="OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5">
591 OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
598 <vswitch-disable-in-band>
600 </vswitch-disable-in-band>
603 c9eecb03-560d-61de-b6a8-56dfc766f67e
606 <network ref="OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531">
609 OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806
617 d2c14c89-29cc-51d4-7664-633eff02b2ad
620 <network ref="OpaqueRef:0b7354a4-8f4b-aa08-2f16-a22c117e4211">
627 dc0f0632-c2aa-1b78-2fea-0d3a23c51740
630 <network ref="OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17">
633 OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
641 db7bdc03-074d-42ae-fc73-9b06de1d57f6
644 <pool ref="OpaqueRef:a765d06c-fc82-cc67-8f6c-fd8db45f6a84">
646 <vswitch-controller-fail-mode>
648 </vswitch-controller-fail-mode>
651 </xenserver-network-configuration>
655 m4_define([IFR_RUN], [./interface-reconfigure --root-prefix=$PWD --no-syslog])
657 m4_define([IFR_FILTER], [sed -n -e "s,$PWD,,g" -e 's/ -- /\
658 /g' -e '/^Running command:/!p' stderr])
660 AT_BANNER([interface-reconfigure])
662 AT_SETUP([non-VLAN, non-bond])
663 AT_KEYWORDS([interface-reconfigure])
666 AT_CHECK([IFR_RUN --force xenbr2 up], [0], [], [stderr])
667 AT_CHECK([IFR_FILTER], [0], [[Force interface xenbr2 up
668 Loading xapi database cache from /var/xapi/network.dbcache
669 Configured for Vswitch datapath
671 Writing network configuration for xenbr2
672 Configuring xenbr2 using DHCP configuration
673 configure_datapath: bridge - xenbr2
674 configure_datapath: physical - [u'eth2']
675 configure_datapath: extra ports - []
676 configure_datapath: extra bonds - []
677 Applying changes to /etc/sysconfig/network-scripts/route-xenbr2 configuration
678 Applying changes to /etc/sysconfig/network configuration
679 Applying changes to /etc/sysconfig/network-scripts/ifcfg-xenbr2 configuration
680 /sbin/ifconfig eth2 up mtu 1500
681 /sbin/ethtool -K eth2 gro off lro off
682 /usr/sbin/ovs-vlan-bug-workaround eth2 on
683 /usr/bin/ovs-vsctl --timeout=20
684 --with-iface --if-exists del-port eth2
685 --may-exist add-br xenbr2
686 --may-exist add-port xenbr2 eth2
687 set Bridge xenbr2 other-config:hwaddr="00:15:17:a0:29:80"
688 set Bridge xenbr2 fail_mode=standalone
689 remove Bridge xenbr2 other_config disable-in-band
690 br-set-external-id xenbr2 xs-network-uuids d08c8749-0c8f-9e8d-ce25-fd364661ee99
693 Committing changes to /etc/sysconfig/network-scripts/route-xenbr2 configuration
694 Committing changes to /etc/sysconfig/network configuration
695 Committing changes to /etc/sysconfig/network-scripts/ifcfg-xenbr2 configuration
698 AT_CHECK([cat etc/sysconfig/network-scripts/ifcfg-xenbr2], [0],
699 [# DO NOT EDIT: This file (ifcfg-xenbr2) was autogenerated by interface-reconfigure
705 PERSISTENT_DHCLIENT=yes
709 # Simulate interface-reconfigure creating xenbr2, so that we can tell
710 # interface-reconfigure to take it back down.
711 AT_CHECK([configure_netdev xenbr2 00:15:17:a0:29:80 0])
713 AT_CHECK([IFR_RUN --force xenbr2 down], [0], [], [stderr])
714 AT_CHECK([IFR_FILTER], [0], [[Force interface xenbr2 down
715 Loading xapi database cache from /var/xapi/network.dbcache
716 Configured for Vswitch datapath
719 deconfigure ipdev xenbr2 on xenbr2
720 deconfigure_bridge: bridge - xenbr2
721 action_down: bring down physical devices - [u'eth2']
722 /sbin/ifconfig eth2 down
723 /usr/bin/ovs-vsctl --timeout=20
724 --with-iface --if-exists del-port xenbr2
725 --if-exists del-br xenbr2
730 AT_SETUP([VLAN, non-bond])
731 AT_KEYWORDS([interface-reconfigure])
734 AT_CHECK([IFR_RUN --force xapi3 up], [0], [], [stderr])
735 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi3 up
736 Loading xapi database cache from /var/xapi/network.dbcache
737 Configured for Vswitch datapath
739 Writing network configuration for xapi3
740 Configuring xapi3 using None configuration
741 configure_datapath: bridge - xenbr3
742 configure_datapath: physical - [u'eth3']
743 configure_datapath: extra ports - []
744 configure_datapath: extra bonds - []
745 Applying changes to /etc/sysconfig/network-scripts/route-xapi3 configuration
746 Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi3 configuration
747 /sbin/ifconfig eth3 up mtu 1500
748 /sbin/ethtool -K eth3 gro off lro off
749 /usr/sbin/ovs-vlan-bug-workaround eth3 on
750 /usr/bin/ovs-vsctl --timeout=20
751 --with-iface --if-exists del-port eth3
752 --may-exist add-br xenbr3
753 --may-exist add-port xenbr3 eth3
754 set Bridge xenbr3 other-config:hwaddr="00:15:17:a0:29:81"
755 set Bridge xenbr3 fail_mode=standalone
756 remove Bridge xenbr3 other_config disable-in-band
757 br-set-external-id xenbr3 xs-network-uuids 2902ae1b-8013-897a-b697-0b200ea3aaa5;db7bdc03-074d-42ae-fc73-9b06de1d57f6
758 --if-exists del-br xapi3
759 --may-exist add-br xapi3 xenbr3 123
760 br-set-external-id xapi3 xs-network-uuids 2902ae1b-8013-897a-b697-0b200ea3aaa5;db7bdc03-074d-42ae-fc73-9b06de1d57f6
761 set Interface xapi3 MAC="00:15:17:a0:29:81"
764 Committing changes to /etc/sysconfig/network-scripts/route-xapi3 configuration
765 Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi3 configuration
768 AT_CHECK([cat etc/sysconfig/network-scripts/ifcfg-xapi3], [0],
769 [# DO NOT EDIT: This file (ifcfg-xapi3) was autogenerated by interface-reconfigure
778 # Simulate interface-reconfigure creating xapi3, so that we can tell
779 # interface-reconfigure to take it back down.
780 AT_CHECK([configure_netdev xapi3 00:23:20:AC:AF:02 0])
782 AT_CHECK([IFR_RUN --force xapi3 down], [0], [], [stderr])
783 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi3 down
784 Loading xapi database cache from /var/xapi/network.dbcache
785 Configured for Vswitch datapath
788 deconfigure ipdev xapi3 on xenbr3
789 deconfigure_bridge: bridge - xapi3
790 action_down: no more masters, bring down slave xenbr3
791 deconfigure_bridge: bridge - xenbr3
792 action_down: bring down physical devices - [u'eth3']
793 /sbin/ifconfig eth3 down
794 /usr/bin/ovs-vsctl --timeout=20
795 --with-iface --if-exists del-port xapi3
796 --if-exists del-br xapi3
797 --if-exists del-br xenbr3
802 AT_SETUP([Bond, non-VLAN])
803 AT_KEYWORDS([interface-reconfigure])
806 # Pretend that bond0 exists, even though it would really be created by
807 # a "create-bond" call in an ovs-vsctl invocation within
808 # interface-reconfigure, because otherwise interface-reconfigure will
809 # die with "failed to apply changes: netdev: up: device bond0 does not
810 # exist" after it thinks it created bond0.
811 AT_CHECK([configure_netdev bond0 00:23:20:e6:39:75 0])
813 AT_CHECK([IFR_RUN --force xapi1 up], [0], [], [stderr])
814 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi1 up
815 Loading xapi database cache from /var/xapi/network.dbcache
816 Configured for Vswitch datapath
818 Writing network configuration for xapi1
819 Configuring xapi1 using None configuration
820 configure_datapath: leaving bond bond0 up
821 configure_datapath: leaving bond bond0 up
822 configure_datapath: bridge - xapi1
823 configure_datapath: physical - [u'eth0', u'eth1']
824 configure_datapath: extra ports - []
825 configure_datapath: extra bonds - []
826 netdev: down: device xenbr0 does not exist, ignoring
827 netdev: down: device xenbr1 does not exist, ignoring
828 Applying changes to /etc/sysconfig/network-scripts/route-xapi1 configuration
829 Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi1 configuration
830 /sbin/ifconfig eth0 up mtu 1500
831 /sbin/ethtool -K eth0 gro off lro off
832 /usr/sbin/ovs-vlan-bug-workaround eth0 on
833 /sbin/ifconfig eth1 up mtu 1500
834 /sbin/ethtool -K eth1 gro off lro off
835 /usr/sbin/ovs-vlan-bug-workaround eth1 off
836 /usr/bin/ovs-vsctl --timeout=20
837 --if-exists del-br xenbr0
838 --if-exists del-br xenbr1
839 --with-iface --if-exists del-port eth0
840 --with-iface --if-exists del-port eth1
841 --may-exist add-br xapi1
842 --with-iface --if-exists del-port bond0
843 --fake-iface add-bond xapi1 bond0 eth0 eth1
844 set Port bond0 MAC="00:22:19:22:4b:af" other-config:bond-miimon-interval=100 bond_downdelay=200 bond_updelay=31000 other-config:bond-detect-mode=carrier lacp=off bond_mode=balance-slb
845 set Bridge xapi1 other-config:hwaddr="00:22:19:22:4b:af"
846 set Bridge xapi1 fail_mode=standalone
847 remove Bridge xapi1 other_config disable-in-band
848 br-set-external-id xapi1 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
850 action_up: bring up bond0
851 /sbin/ifconfig bond0 up
853 Committing changes to /etc/sysconfig/network-scripts/route-xapi1 configuration
854 Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi1 configuration
857 AT_CHECK([cat etc/sysconfig/network-scripts/ifcfg-xapi1], [0],
858 [# DO NOT EDIT: This file (ifcfg-xapi1) was autogenerated by interface-reconfigure
867 # Simulate interface-reconfigure creating xapi1, so that we can tell
868 # interface-reconfigure to take it back down.
869 AT_CHECK([configure_netdev xapi1 00:22:19:22:4B:AF 0])
871 AT_CHECK([IFR_RUN --force xapi1 down], [0], [], [stderr])
872 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi1 down
873 Loading xapi database cache from /var/xapi/network.dbcache
874 Configured for Vswitch datapath
877 deconfigure ipdev xapi1 on xapi1
878 deconfigure_bridge: bridge - xapi1
879 action_down: bring down physical devices - [u'eth0', u'eth1']
880 /sbin/ifconfig eth0 down
881 /sbin/ifconfig eth1 down
882 /usr/bin/ovs-vsctl --timeout=20
883 --with-iface --if-exists del-port xapi1
884 --if-exists del-br xapi1
889 AT_SETUP([VLAN on bond])
890 AT_KEYWORDS([interface-reconfigure])
893 # Pretend that bond0 exists, even though it would really be created by
894 # a "create-bond" call in an ovs-vsctl invocation within
895 # interface-reconfigure, because otherwise interface-reconfigure will
896 # die with "failed to apply changes: netdev: up: device bond0 does not
897 # exist" after it thinks it created bond0.
898 AT_CHECK([configure_netdev bond0 00:23:20:e6:39:75 0])
900 AT_CHECK([IFR_RUN --force xapi2 up], [0], [], [stderr])
901 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi2 up
902 Loading xapi database cache from /var/xapi/network.dbcache
903 Configured for Vswitch datapath
905 Writing network configuration for xapi2
906 Configuring xapi2 using None configuration
907 configure_datapath: leaving bond bond0 up
908 configure_datapath: leaving bond bond0 up
909 configure_datapath: bridge - xapi1
910 configure_datapath: physical - [u'eth0', u'eth1']
911 configure_datapath: extra ports - []
912 configure_datapath: extra bonds - []
913 netdev: down: device xenbr0 does not exist, ignoring
914 netdev: down: device xenbr1 does not exist, ignoring
915 Applying changes to /etc/sysconfig/network-scripts/route-xapi2 configuration
916 Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi2 configuration
917 /sbin/ifconfig eth0 up mtu 1500
918 /sbin/ethtool -K eth0 gro off lro off
919 /usr/sbin/ovs-vlan-bug-workaround eth0 on
920 /sbin/ifconfig eth1 up mtu 1500
921 /sbin/ethtool -K eth1 gro off lro off
922 /usr/sbin/ovs-vlan-bug-workaround eth1 off
923 /usr/bin/ovs-vsctl --timeout=20
924 --if-exists del-br xenbr0
925 --if-exists del-br xenbr1
926 --with-iface --if-exists del-port eth0
927 --with-iface --if-exists del-port eth1
928 --may-exist add-br xapi1
929 --with-iface --if-exists del-port bond0
930 --fake-iface add-bond xapi1 bond0 eth0 eth1
931 set Port bond0 MAC="00:22:19:22:4b:af" other-config:bond-miimon-interval=100 bond_downdelay=200 bond_updelay=31000 other-config:bond-detect-mode=carrier lacp=off bond_mode=balance-slb
932 set Bridge xapi1 other-config:hwaddr="00:22:19:22:4b:af"
933 set Bridge xapi1 fail_mode=standalone
934 remove Bridge xapi1 other_config disable-in-band
935 br-set-external-id xapi1 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
936 --if-exists del-br xapi2
937 --may-exist add-br xapi2 xapi1 4
938 br-set-external-id xapi2 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
939 set Interface xapi2 MAC="00:22:19:22:4b:af"
941 action_up: bring up bond0
942 /sbin/ifconfig bond0 up
944 Committing changes to /etc/sysconfig/network-scripts/route-xapi2 configuration
945 Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi2 configuration
948 AT_CHECK([cat etc/sysconfig/network-scripts/ifcfg-xapi2], [0],
949 [# DO NOT EDIT: This file (ifcfg-xapi2) was autogenerated by interface-reconfigure
958 # Simulate interface-reconfigure creating xapi2, so that we can tell
959 # interface-reconfigure to take it back down.
960 AT_CHECK([configure_netdev xapi2 00:23:20:A4:71:C2 0])
962 AT_CHECK([IFR_RUN --force xapi2 down], [0], [], [stderr])
963 AT_CHECK([IFR_FILTER], [0], [[Force interface xapi2 down
964 Loading xapi database cache from /var/xapi/network.dbcache
965 Configured for Vswitch datapath
968 deconfigure ipdev xapi2 on xapi1
969 deconfigure_bridge: bridge - xapi2
970 action_down: no more masters, bring down slave xapi1
971 deconfigure_bridge: bridge - xapi1
972 action_down: bring down physical devices - [u'eth0', u'eth1']
973 /sbin/ifconfig eth0 down
974 /sbin/ifconfig eth1 down
975 /usr/bin/ovs-vsctl --timeout=20
976 --with-iface --if-exists del-port xapi2
977 --if-exists del-br xapi2
978 --if-exists del-br xapi1