]> git.proxmox.com Git - mirror_ifupdown2.git/log
mirror_ifupdown2.git
9 years agoMove ifupdown2addons into ifupdown2 pacakge
Roopa Prabhu [Thu, 9 Oct 2014 23:02:46 +0000 (16:02 -0700)]
Move ifupdown2addons into ifupdown2 pacakge

Ticket: CM-3864
Reviewed By:
Testing Done: Tested build and install

open item:
- cleanup stale ifupdown2-addons package files

9 years agomore support and fixes to support new format for vlan filtering bridge
Roopa Prabhu [Thu, 9 Oct 2014 19:58:16 +0000 (12:58 -0700)]
more support and fixes to support new format for vlan filtering bridge

Ticket: CM-3346
Reviewed By:
Testing Done: Tested with old and new formats

Details of the format are attached to the bug.

9 years agosupport for new bridge driver syntax
Roopa Prabhu [Mon, 6 Oct 2014 18:11:10 +0000 (11:11 -0700)]
support for new bridge driver syntax

Ticket: CM-3346
Reviewed By:
Testing Done: tested vmware interfaces file with old and new formats

details:
- move bridge port membership to under the port
- move bridge port attributes under ports
- bridge attributes continue to remain under bridge
- special vlan interface for vlan attributes and svi config (iface
vlan-<vlanid/range>)
- maintain backward compatibility with all previously released bridge
config formats for vlan aware bridge

Open issues:
- check and running support will be done part of CM-3784
- ifquery currently expands and prints all the vlan-* interfaces.

10 years agoMinor fixes for multiple interfaces with the same config + performance
Roopa Prabhu [Fri, 26 Sep 2014 21:23:15 +0000 (14:23 -0700)]
Minor fixes for multiple interfaces with the same config + performance
fix for the dependency graph generator code

Ticket:
Reviewed By:
Testing Done: sanity test

10 years agoInitial checkin for ifup/ifdown svi config
Roopa Prabhu [Thu, 25 Sep 2014 17:55:08 +0000 (10:55 -0700)]
Initial checkin for ifup/ifdown svi config

Ticket:
Reviewed By:
Testing Done: Tested with old and new bridge driver

Examples:
old bridge driver:
%for v in range(100, 104):
auto br${v}
iface br${v}
    bridge-ports uplink1.${v} peerlink.${v} downlink.${v} glob
swp2-4.${v}
    bridge-stp on
    svi-router-ip 11.${v/256}.${v%256}.240/24
    svi-router-mac 00:00:5e:00:01:00
    svi-router-virtual-ip 11.${v/256}.${v%256}.241/24
    svi-router-virtual-mac 00:11:22:33:44:00
%endfor

new bridge driver:
%for v in range(100, 101):
auto br0.${v}
iface br0.${v}
    svi-router-ip 11.${v/256}.${v%256}.240/24
    svi-router-mac 00:00:5e:00:01:00
    svi-router-virtual-ip 11.${v/256}.${v%256}.241/24
    svi-router-virtual-mac 00:11:22:33:44:00
%endfor

Pending issues:
- optimization (its slow with 2000 svi's today)
- ifquery check and running support
- names of attributes and macvlan interfaces may change after review

10 years agoMerge branch 'master' of ssh://dev.cumulusnetworks.com/home/trac/cumulus
Cumulus Builds [Sat, 30 Aug 2014 22:38:46 +0000 (15:38 -0700)]
Merge branch 'master' of ssh://dev.cumulusnetworks.com/home/trac/cumulus

Conflicts:
patches/bcm-sdk/series

10 years agoMerge branch 'vmware_L2'
Cumulus Builds [Sat, 30 Aug 2014 19:35:23 +0000 (12:35 -0700)]
Merge branch 'vmware_L2'

Conflicts:
build-config/conf/extra-pkgs
build-config/conf/linux.vci.config
build-config/conf/snapshot-manifest-amd64
build-config/conf/version
build-config/make/bcm-sdk.make
build-config/make/local-pkgs.make
build-config/make/local-pkgs2.make
packages/cafe/scripts/build.py
packages/cl-platform-config/usr/share/platform-config/accton/as6701_32x/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/cel/smallstone/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/dell/s6000_s1220/etc/bcm.d/config.d/01config.bcm
packages/cl-utilities/usr/share/cumulus/support/functions
packages/cl-utilities/usrlib/datapath-update
packages/clag/init.d/clagd
packages/clag/man/clagctl.8
packages/clag/sbin/clagctl
packages/clag/sbin/clagd
packages/clag/setup.py
packages/ifupdown2-addons/addons/bridge.py
packages/ifupdown2-addons/pkg/bridgeutils.py
packages/ifupdown2-addons/pkg/ifenslaveutil.py
packages/ifupdown2-addons/pkg/iproute2.py
packages/ifupdown2-addons/pkg/modulebase.py
packages/ifupdown2/pkg/ifupdownmain.py
packages/ifupdown2/pkg/networkinterfaces.py
packages/ifupdown2/pkg/scheduler.py
packages/portwd/portwd
packages/ptm/ptm_conf.c
patches/bcm-sdk/series
patches/bridge-utils/series
patches/iproute/fix-bridge-batch.patch
patches/iproute/fix-fdb-add.patch
patches/iproute/ip-add-batch-mode-to-man-page.patch
patches/iproute/series
patches/iproute/show-fdb-bridge.patch
patches/kernel/debian-cumulus-controlfiles.patch
patches/kernel/network-bridge-fdb-learn-priority.patch
patches/kernel/network-bridge-igmp-fast-leave.patch
patches/kernel/network-bridge-igmpv3.patch
patches/kernel/network-bridge-querier-ifaddr.patch
patches/kernel/network-bridge-use-spin_lock_bh-from-process-context.patch
patches/kernel/network-tun-ethtool.patch
patches/kernel/network-vxlan-fix-fdb-update.patch
patches/kernel/series
patches/libnl/series
rootconf/default/etc/cumulus/switchd.conf
switchd/hal.c
switchd/hal.h
switchd/hal_bcm.c
switchd/hal_bcm_vxlan.c
switchd/hal_config.c
switchd/hal_dummy.c
switchd/hal_int.h
switchd/hal_util.c
switchd/switchd.c
switchd/sync.c
tests/config/__init__.py
tests/config/default.cfg
tests/examples/testssim2.py
tests/infra/testssim2.py
tests/smoke/testifupdown2.py
tests/tests/examples/testssim2.py
utilities/distro-cmd
utilities/packages/ssim2/simlib.py
utilities/packages/testfu/scripts/runteststmpl.sh
utilities/packages/testfu/scripts/xmltoresults.py

10 years agoFix leftover func call possibly due to merge + some cleanup
Roopa Prabhu [Tue, 26 Aug 2014 23:17:49 +0000 (16:17 -0700)]
Fix leftover func call possibly due to merge + some cleanup

Ticket: CM-3542
Reviewed By:
Testing Done:

10 years agoFix a few options
Roopa Prabhu [Tue, 26 Aug 2014 21:19:13 +0000 (14:19 -0700)]
Fix a few options

Ticket: CM-3529
Reviewed By:
Testing Done: checked man pages

10 years agoMerge branch 'CumulusLinux-2.1_br'
Cumulus Builds [Mon, 25 Aug 2014 01:39:31 +0000 (18:39 -0700)]
Merge branch 'CumulusLinux-2.1_br'

Conflicts:
build-config/Makefile
build-config/conf/extra-pkgs
build-config/conf/linux.amd64.config
build-config/conf/linux.powerpc-e500.config
build-config/conf/linux.vci.config
build-config/conf/snapshot-manifest-amd64
build-config/conf/snapshot-manifest-powerpc
build-config/installer/arch/amd64-installer-functions
build-config/installer/cumulus/init/im_n29xx_t40n/platform.conf
build-config/make/bcm-sdk.make
build-config/make/images.make
build-config/make/kernel.make
build-config/make/lkm.make
build-config/make/local-pkgs.make
build-config/make/local-pkgs2.make
build-config/scripts/kernel-builddeb
build-config/scripts/mkimage-amd64.sh
modules/Makefile
modules/accton_as5712_54x_platform.c
modules/cel_redstone_xp_muxpld.c
modules/dell_s6000_platform.c
modules/platform_defs.h
packages/cafe/clobjects.py
packages/cafe/scripts/build.py
packages/cafe/scripts/supporttarball.py
packages/cafe/scripts/test_ci.sh
packages/cl-basefiles/etc/cumulus/datapath/traffic.conf
packages/cl-image/bin/cl-img-install
packages/cl-image/bin/cl-img-select
packages/cl-image/img/functions
packages/cl-platform-config/usr/share/platform-config/accton/as5712_54x/bin/eeprom.py
packages/cl-platform-config/usr/share/platform-config/accton/as5712_54x/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/accton/as5712_54x/etc/modules
packages/cl-platform-config/usr/share/platform-config/accton/as5712_54x/etc/sensors.d/accton_as5712_54x.conf
packages/cl-platform-config/usr/share/platform-config/accton/as6701_32x/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/bin/eeprom.py
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/bcm.d/default_config_values
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/bcm.d/hw_desc
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/bcm.d/rc.soc
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/modules
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/etc/sensors.d/cel_redstone_xp.conf
packages/cl-platform-config/usr/share/platform-config/cel/redstone_xp/hw_init.d/S20qsfp_init.sh
packages/cl-platform-config/usr/share/platform-config/cel/smallstone/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/dell/s6000_s1220/bin/eeprom.py
packages/cl-platform-config/usr/share/platform-config/dell/s6000_s1220/etc/bcm.d/config.d/01config.bcm
packages/cl-platform-config/usr/share/platform-config/dell/s6000_s1220/etc/modules
packages/cl-platform-config/usr/share/platform-config/dell/s6000_s1220/etc/sensors.d/dell_s6000_s1220.conf
packages/cl-platform-config/usr/share/platform-config/dni/c7448n/etc/bcm.d/default_config_values
packages/cl-platform-config/usr/share/platform-config/dni/c7448n/etc/bcm.d/hw_desc
packages/cl-platform-config/usr/share/platform-config/im/n29xx_t40n/etc/bcm.d/rc.soc
packages/cl-platform-config/usr/share/platform-config/im/n29xx_t40n/etc/cumulus/ports.conf
packages/cl-platform-config/usr/share/platform-config/quanta/ly6_p2020/etc/bcm.d/config.d/01config.bcm
packages/cl-utilities/dist-packages/cumulus/__chip_config/bcm/Trident/rc.forwarding
packages/cl-utilities/dist-packages/cumulus/__chip_config/bcm/TridentTwo/rc.forwarding
packages/cl-utilities/dist-packages/cumulus/__chip_config/bcm/Triumph/rc.forwarding
packages/cl-utilities/dist-packages/cumulus/__chip_config/bcm/datapath.conf
packages/cl-utilities/dist-packages/cumulus/platform.py
packages/cl-utilities/dist-packages/cumulus/platforms/accton.py
packages/cl-utilities/dist-packages/cumulus/platforms/cel.py
packages/cl-utilities/dist-packages/cumulus/platforms/dell.py
packages/cl-utilities/dist-packages/cumulus/platforms/quanta.py
packages/cl-utilities/dist-packages/cumulus/portconfig.py
packages/cl-utilities/dist-packages/cumulus/sensors.py
packages/cl-utilities/rst/pwmd.8.rst
packages/cl-utilities/rst/smonctl.8.rst
packages/cl-utilities/usrlib/datapath-config
packages/cl-utilities/usrlib/datapath-update
packages/cl-utilities/usrlib/update-ports
packages/clag/man/clagctl.8
packages/clag/man/clagd.8
packages/clag/sbin/clagctl
packages/clag/sbin/clagd
packages/clag/setup.py
packages/ifupdown2-addons/addons/bridge.py
packages/ifupdown2-addons/addons/mstpctl.py
packages/ifupdown2-addons/pkg/bridgeutils.py
packages/ifupdown2-addons/pkg/ifenslaveutil.py
packages/ifupdown2-addons/pkg/modulebase.py
packages/ifupdown2/init.d/networking
packages/ifupdown2/pkg/iface.py
packages/ifupdown2/pkg/ifupdownbase.py
packages/ifupdown2/pkg/ifupdownmain.py
packages/ifupdown2/pkg/networkinterfaces.py
packages/ifupdown2/pkg/scheduler.py
packages/ifupdown2/sbin/ifupdown
packages/iorw/Makefile
packages/iorw/iorw.c
packages/lnv/debian/control
packages/lnv/debian/install
packages/lnv/debian/lnv-dsr.init
packages/lnv/debian/lnv-pdd.init
packages/lnv/debian/postinst
packages/lnv/lnv-dsr
packages/lnv/lnv-pdd
packages/lnv/lnv.conf
packages/lnv/lnv/common.py
packages/lnv/lnv/config.py
packages/ptm/debian/ptmd.install
patches/bcm-sdk/series
patches/bridge-utils/remove-ifupdown-support.patch
patches/ethtool/force-speed-and-duplex-setting.patch
patches/ethtool/series
patches/iproute/series
patches/iproute/update-neighbour-h-to-latest-upstream.patch
patches/kernel/arch-intel-centerton-reboot-cf9.patch
patches/kernel/debian-cumulus-controlfiles.patch
patches/kernel/driver-hwmon-max6620-fix-rpm-calc.patch
patches/kernel/driver-hwmon-pmbus-dni_dps460.patch
patches/kernel/driver-support-intel-avoton-ethernet-with-broadcom-phy.patch
patches/kernel/network-bridge-igmp-fast-leave.patch
patches/kernel/network-bridge-igmpv3.patch
patches/kernel/network-bridge-querier-ifaddr.patch
patches/kernel/network-bridge-use-spin_lock_bh-from-process-context.patch
patches/kernel/network-ipv6-route-fix-multipath-duplicate-nexthops.patch
patches/kernel/network-tun-ethtool.patch
patches/kernel/series
patches/libnl/series
patches/lldpd/add-rport-notification-on-linkdown.patch
patches/lldpd/series
patches/monit/cumulus-monitrc.patch
patches/monit/series
patches/quagga/bgp-interface-config.patch
patches/quagga/bgpd-anvl-aggregate-failures.patch
patches/quagga/bgpd-as-override.patch
patches/quagga/bgpd-atomic-aggregate-missing.patch
patches/quagga/bgpd-connected-nht.patch
patches/quagga/bgpd-establish-peers-faster.patch
patches/quagga/bgpd-event-driven-route-map-updates.patch
patches/quagga/bgpd-fsm-fix.patch
patches/quagga/bgpd-gr-route-selection-fix.patch
patches/quagga/bgpd-maxmed-administrative-onstartup.patch
patches/quagga/bgpd-pfxrcd-include-unuseable.patch
patches/quagga/bgpd-route-map-dry-run.patch
patches/quagga/bgpd-route-map-match-interface.patch
patches/quagga/bgpd-rr-allow-policy-outbound.patch
patches/quagga/bgpd-save-last-bad-msg.patch
patches/quagga/bgpd-scale-update-delay-packing.patch
patches/quagga/nexthop-tracking.patch
patches/quagga/ospfd-mi.patch
patches/quagga/ospfd-p2p-destination-fix.patch
patches/quagga/ptm-bfd-integration.patch
patches/quagga/quagga-faster-compile.patch
patches/quagga/series
patches/quagga/zebra-client-info-detail.patch
patches/quagga/zebra-nht-routemap.patch
patches/quagga/zebra-recursive-route.patch
patches/quagga/zebra-redistribute-table.patch
patches/quagga/zebra-route-tags.patch
patches/quagga/zebra-set-src-routemap.patch
patches/quagga/zebra-static-route-nht.patch
rootconf/default/etc/cumulus/switchd.conf
rootconf/default/home/cumulus/sysroot-complete
rootconf/default/home/cumulus/sysroot-config
switchd/hal.c
switchd/hal.h
switchd/hal_acl_bcm.c
switchd/hal_bcm.c
switchd/hal_bcm.h
switchd/hal_bcm_vxlan.c
switchd/hal_dummy.c
switchd/hal_int.h
switchd/hal_util.c
switchd/netlink.c
switchd/switchd.c
switchd/sync.c
tests/config/__init__.py
tests/config/default.cfg
tests/data/specs/bgp_stress.py
tests/examples/testssim2.py
tests/infra/testssim2.py
tests/l2/l2_lldp_test.py
tests/l3/bgp_alpm_test.py
tests/l3/bgp_msft_fastreboot_test.py
tests/l3/bgp_scale_amzn_test.py
tests/l3/bgp_smoke_test.py
tests/l3/bgp_v4_v6.py
tests/l3/l3_helper.py
tests/l3/traffic_utils.py
tests/l3/zebra_test.py
tests/lib/decorators.py
tests/platform/cl-img.py
tests/smoke/testcommands.py
tests/smoke/testifupdown2.py
tests/smoke/testneighborcheck.py
tests/smoke/testroutecheck.py
tests/smoke/testroutes2.py
tests/tests/examples/testssim2.py
utilities/distro-cmd
utilities/packages/autolib/fs.py
utilities/packages/autolib/netobjects.py
utilities/packages/autolib/scripts/watch.py
utilities/packages/autolib/timeout.py
utilities/packages/ssim2/net.py
utilities/packages/ssim2/scripts/nodecom.py
utilities/packages/ssim2/simlib.py
utilities/packages/ssim2/spec.py
utilities/packages/ssim2/templates/interfaces.tmpl
utilities/packages/testfu/buildout.cfg
utilities/packages/testfu/scripts/runteststmpl.sh
utilities/packages/testfu/scripts/xmltoresults.py

10 years agoRevert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"
Wilson Kok [Mon, 28 Jul 2014 04:28:46 +0000 (21:28 -0700)]
Revert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"

This reverts commit 99d97bfcd931d40b84387f073a6c1b16866fc1e2.

10 years agoRevert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"
Wilson Kok [Fri, 25 Jul 2014 17:33:44 +0000 (10:33 -0700)]
Revert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"

This reverts commit 99d97bfcd931d40b84387f073a6c1b16866fc1e2.

10 years agoRemove exclude lo
Roopa Prabhu [Tue, 22 Jul 2014 22:34:15 +0000 (15:34 -0700)]
Remove exclude lo

Ticket: CM-3300
Reviewed By:
Testing Done: Tested reboot/shutdown and service networking restart

10 years agoDocumentation cleanup
Roopa Prabhu [Tue, 22 Jul 2014 18:15:56 +0000 (11:15 -0700)]
Documentation cleanup

Ticket:
Reviewed By:
Testing Done:

- these changes are mainly related to api doc generation using sphinx

10 years agoDoc updates + cleanup
Roopa Prabhu [Thu, 17 Jul 2014 18:44:36 +0000 (11:44 -0700)]
Doc updates + cleanup

Ticket: CM-2297
Reviewed By:
Testing Done: compile tested

more updates coming ...

10 years agoFix return value when upperifaces are brought up
Roopa Prabhu [Fri, 11 Jul 2014 04:08:21 +0000 (21:08 -0700)]
Fix return value when upperifaces are brought up

Ticket: CM-3208
Reviewed By:
Testing Done: Tested with testcase listed in the bug

This patch does the following:
- moves the interface error exit check to before upperifaces are brought
  up
- changes errors to warns on upperiface error (this is because
  upperiface 'up' is done as best effort to reconfigure the interface in
  question as slave device to the upper device. But if the upper device
  is not in a right state config steps can fail. And we should just
warn).
- Implicitly bringing up the upperifaces helps in most of the cases. especially
  when a bond is brought down and up. The upperiface handling code adds
  the bond back into bridges it was part of. or creates the vlan devices
  on the bond that got deleted. But there can be cases where upperifaces are
  not in the right state and this results in warnings.

  To disable the implicit upperiface handling, this patch also supports
  'skip_upperifaces=1' in /etc/network/ifupdown2/ifupdown2.conf

in future, i am thinking of an option --skip-upperifaces to ifup

10 years agolog /etc/init.d/networking errors into syslog using /usr/bin/logger
Roopa Prabhu [Thu, 10 Jul 2014 03:23:21 +0000 (20:23 -0700)]
log /etc/init.d/networking errors into syslog using /usr/bin/logger

Ticket: CM-3193
Reviewed By:
Testing Done: Tested logging of errors in syslog from ifup at bootup

Example error msg:
"Jul 10 03:13:17 cumulus /etc/init.d/networking[1183]: error:
/etc/network/interfaces: line16: invalid auto line 'auto'"

This patch logs into syslog only during bootup

10 years agoAdd a new ifupdown2 example to cover bridge igmp and mstp attributes
Roopa Prabhu [Wed, 9 Jul 2014 21:14:14 +0000 (14:14 -0700)]
Add a new ifupdown2 example to cover bridge igmp and mstp attributes

Ticket: CM-1438
Reviewed By: TBD
Testing Done: Tested the example file with ifupdown2

10 years agoBump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
Roopa Prabhu [Tue, 8 Jul 2014 15:52:05 +0000 (08:52 -0700)]
Bump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
errors to warns

Ticket: CM-3159
Reviewed By: briefly ran this by jtoppins and andy (sfeldma is on
vacation this week).
Testing Done: tested ifupdown2 with ethtool config during boot (sam will
also be adding the testcase mentioned in the bug to ifupdown2 smoke)

The kernel timeout increase helps right now.
we should revisit this again in 2.3 to close all corner cases.

ifupdown2 will now warn on ethtool errors and will also return
non-zero exit status

10 years agoFix use of args.CLASS with ifreload (reload does not support CLASS yet).
Roopa Prabhu [Mon, 7 Jul 2014 18:30:52 +0000 (11:30 -0700)]
Fix use of args.CLASS with ifreload (reload does not support CLASS yet).

Ticket: CM-3176
Reviewed By: trivial
Testing Done: Tested ifreload with the testcase in the bug

This broke when i recently fixed --allow-classes support for ifup/ifdown

10 years agoFix error flag for cases where errors are ignored (part of commit
Roopa Prabhu [Thu, 3 Jul 2014 21:43:26 +0000 (14:43 -0700)]
Fix error flag for cases where errors are ignored (part of commit
3afb698d60a7ec0bb3029efccc82c0bd1aa49197)

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + precommit

10 years agoexit with non-zero return code if any of the ifaces have errors
Roopa Prabhu [Wed, 2 Jul 2014 17:03:02 +0000 (10:03 -0700)]
exit with non-zero return code if any of the ifaces have errors

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + error cases + precommit

uses a class variable to store return value

10 years agoFix splits everywhere to include space and tabs. Use regex split
Roopa Prabhu [Sat, 28 Jun 2014 06:44:36 +0000 (23:44 -0700)]
Fix splits everywhere to include space and tabs. Use regex split

Ticket: CM-3121
Reviewed By:
Testing Done: Ran precommit

Conflicts:
packages/ifupdown2-addons/pkg/modulebase.py

10 years agoFix handling of interfaces with `--allow CLASS`
Roopa Prabhu [Wed, 25 Jun 2014 22:23:04 +0000 (15:23 -0700)]
Fix handling of interfaces with `--allow CLASS`

Ticket: CM-3105
Reviewed By:
Testing Done: precommit and some interface class tests

- the patch mostly involves code reorg

10 years agoFix scheduler for --allow <classes> option
Roopa Prabhu [Sun, 15 Jun 2014 05:53:23 +0000 (22:53 -0700)]
Fix scheduler for --allow <classes> option

Ticket:
Reviewed By: nobody
Testing Done: Tested --allow <classes>

10 years agoFix whitespace issue + uninitialized variable issue
Roopa Prabhu [Fri, 13 Jun 2014 13:15:40 +0000 (06:15 -0700)]
Fix whitespace issue + uninitialized variable issue

Ticket: CM-2997
Reviewed By: shm
Testing Done: Ran precommit

10 years agoFix upperiface check when ifdown is run with -a
Roopa Prabhu [Fri, 13 Jun 2014 13:08:40 +0000 (06:08 -0700)]
Fix upperiface check when ifdown is run with -a

Ticket: CM-3007
Reviewed By: shm + patch was pasted in the bug for review
Testing Done: ran precommit + maliks test + malik ran his test on his
box

When -a is specified ifupdown2 works on all interfaces and since the the
upperiface check is a bit expensive i had a "skip" on that.
And so far all the user commands i have seen only work on the $IFACE and
not its dependents. So, never hit this case.

10 years agoprefix ethtool attributes with "link-" to be compatible with
Roopa Prabhu [Thu, 12 Jun 2014 13:27:29 +0000 (06:27 -0700)]
prefix ethtool attributes with "link-" to be compatible with
native ifupdown + documentation fixes

Ticket: CM-3000
Reviewed By: trivial + doc related
Testing Done: Ran precommit

10 years agoAdd close_fds=True in ifupdownbase class
Roopa Prabhu [Tue, 3 Jun 2014 18:11:47 +0000 (11:11 -0700)]
Add close_fds=True in ifupdownbase class

Ticket: CM-2899
Reviewed By:
Testing Done: Tested ifupdown sanity

Just closing all the places where we could leak fds.

10 years agoFix return value when upperifaces are brought up
Roopa Prabhu [Fri, 11 Jul 2014 04:08:21 +0000 (21:08 -0700)]
Fix return value when upperifaces are brought up

Ticket: CM-3208
Reviewed By:
Testing Done: Tested with testcase listed in the bug

This patch does the following:
- moves the interface error exit check to before upperifaces are brought
  up
- changes errors to warns on upperiface error (this is because
  upperiface 'up' is done as best effort to reconfigure the interface in
  question as slave device to the upper device. But if the upper device
  is not in a right state config steps can fail. And we should just
warn).
- Implicitly bringing up the upperifaces helps in most of the cases. especially
  when a bond is brought down and up. The upperiface handling code adds
  the bond back into bridges it was part of. or creates the vlan devices
  on the bond that got deleted. But there can be cases where upperifaces are
  not in the right state and this results in warnings.

  To disable the implicit upperiface handling, this patch also supports
  'skip_upperifaces=1' in /etc/network/ifupdown2/ifupdown2.conf

in future, i am thinking of an option --skip-upperifaces to ifup

10 years agolog /etc/init.d/networking errors into syslog using /usr/bin/logger
Roopa Prabhu [Thu, 10 Jul 2014 03:23:21 +0000 (20:23 -0700)]
log /etc/init.d/networking errors into syslog using /usr/bin/logger

Ticket: CM-3193
Reviewed By:
Testing Done: Tested logging of errors in syslog from ifup at bootup

Example error msg:
"Jul 10 03:13:17 cumulus /etc/init.d/networking[1183]: error:
/etc/network/interfaces: line16: invalid auto line 'auto'"

This patch logs into syslog only during bootup

10 years agoAdd a new ifupdown2 example to cover bridge igmp and mstp attributes
Roopa Prabhu [Wed, 9 Jul 2014 21:14:14 +0000 (14:14 -0700)]
Add a new ifupdown2 example to cover bridge igmp and mstp attributes

Ticket: CM-1438
Reviewed By: TBD
Testing Done: Tested the example file with ifupdown2

10 years agoBump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
Roopa Prabhu [Tue, 8 Jul 2014 15:52:05 +0000 (08:52 -0700)]
Bump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
errors to warns

Ticket: CM-3159
Reviewed By: briefly ran this by jtoppins and andy (sfeldma is on
vacation this week).
Testing Done: tested ifupdown2 with ethtool config during boot (sam will
also be adding the testcase mentioned in the bug to ifupdown2 smoke)

The kernel timeout increase helps right now.
we should revisit this again in 2.3 to close all corner cases.

ifupdown2 will now warn on ethtool errors and will also return
non-zero exit status

10 years agoFix use of args.CLASS with ifreload (reload does not support CLASS yet).
Roopa Prabhu [Mon, 7 Jul 2014 18:30:52 +0000 (11:30 -0700)]
Fix use of args.CLASS with ifreload (reload does not support CLASS yet).

Ticket: CM-3176
Reviewed By: trivial
Testing Done: Tested ifreload with the testcase in the bug

This broke when i recently fixed --allow-classes support for ifup/ifdown

10 years agoFix error flag for cases where errors are ignored (part of commit
Roopa Prabhu [Thu, 3 Jul 2014 21:43:26 +0000 (14:43 -0700)]
Fix error flag for cases where errors are ignored (part of commit
3afb698d60a7ec0bb3029efccc82c0bd1aa49197)

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + precommit

10 years agoexit with non-zero return code if any of the ifaces have errors
Roopa Prabhu [Wed, 2 Jul 2014 17:03:02 +0000 (10:03 -0700)]
exit with non-zero return code if any of the ifaces have errors

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + error cases + precommit

uses a class variable to store return value

10 years agoFix splits everywhere to include space and tabs. Use regex split
Roopa Prabhu [Sat, 28 Jun 2014 06:44:36 +0000 (23:44 -0700)]
Fix splits everywhere to include space and tabs. Use regex split

Ticket: CM-3121
Reviewed By:
Testing Done: Ran precommit

10 years agoFix handling of interfaces with `--allow CLASS`
Roopa Prabhu [Wed, 25 Jun 2014 22:23:04 +0000 (15:23 -0700)]
Fix handling of interfaces with `--allow CLASS`

Ticket: CM-3105
Reviewed By:
Testing Done: precommit and some interface class tests

- the patch mostly involves code reorg

10 years agoFix scheduler for --allow <classes> option
Roopa Prabhu [Sun, 15 Jun 2014 05:53:23 +0000 (22:53 -0700)]
Fix scheduler for --allow <classes> option

Ticket:
Reviewed By: nobody
Testing Done: Tested --allow <classes>

10 years agoFix return value when upperifaces are brought up
Roopa Prabhu [Fri, 11 Jul 2014 04:08:21 +0000 (21:08 -0700)]
Fix return value when upperifaces are brought up

Ticket: CM-3208
Reviewed By:
Testing Done: Tested with testcase listed in the bug

This patch does the following:
- moves the interface error exit check to before upperifaces are brought
  up
- changes errors to warns on upperiface error (this is because
  upperiface 'up' is done as best effort to reconfigure the interface in
  question as slave device to the upper device. But if the upper device
  is not in a right state config steps can fail. And we should just
warn).
- Implicitly bringing up the upperifaces helps in most of the cases. especially
  when a bond is brought down and up. The upperiface handling code adds
  the bond back into bridges it was part of. or creates the vlan devices
  on the bond that got deleted. But there can be cases where upperifaces are
  not in the right state and this results in warnings.

  To disable the implicit upperiface handling, this patch also supports
  'skip_upperifaces=1' in /etc/network/ifupdown2/ifupdown2.conf

in future, i am thinking of an option --skip-upperifaces to ifup

10 years agolog /etc/init.d/networking errors into syslog using /usr/bin/logger
Roopa Prabhu [Thu, 10 Jul 2014 03:23:21 +0000 (20:23 -0700)]
log /etc/init.d/networking errors into syslog using /usr/bin/logger

Ticket: CM-3193
Reviewed By:
Testing Done: Tested logging of errors in syslog from ifup at bootup

Example error msg:
"Jul 10 03:13:17 cumulus /etc/init.d/networking[1183]: error:
/etc/network/interfaces: line16: invalid auto line 'auto'"

This patch logs into syslog only during bootup

10 years agoAdd a new ifupdown2 example to cover bridge igmp and mstp attributes
Roopa Prabhu [Wed, 9 Jul 2014 21:14:14 +0000 (14:14 -0700)]
Add a new ifupdown2 example to cover bridge igmp and mstp attributes

Ticket: CM-1438
Reviewed By: TBD
Testing Done: Tested the example file with ifupdown2

10 years agoBump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
Roopa Prabhu [Tue, 8 Jul 2014 15:52:05 +0000 (08:52 -0700)]
Bump kernel ethtool get/set wait to 20 + ifupdown2 convert ethtool
errors to warns

Ticket: CM-3159
Reviewed By: briefly ran this by jtoppins and andy (sfeldma is on
vacation this week).
Testing Done: tested ifupdown2 with ethtool config during boot (sam will
also be adding the testcase mentioned in the bug to ifupdown2 smoke)

The kernel timeout increase helps right now.
we should revisit this again in 2.3 to close all corner cases.

ifupdown2 will now warn on ethtool errors and will also return
non-zero exit status

10 years agoFix use of args.CLASS with ifreload (reload does not support CLASS yet).
Roopa Prabhu [Mon, 7 Jul 2014 18:30:52 +0000 (11:30 -0700)]
Fix use of args.CLASS with ifreload (reload does not support CLASS yet).

Ticket: CM-3176
Reviewed By: trivial
Testing Done: Tested ifreload with the testcase in the bug

This broke when i recently fixed --allow-classes support for ifup/ifdown

10 years agoMerge branch 'CumulusLinux-2.1.0_release_br' into CumulusLinux-2.1_br
John Berezovik [Mon, 7 Jul 2014 16:10:31 +0000 (09:10 -0700)]
Merge branch 'CumulusLinux-2.1.0_release_br' into CumulusLinux-2.1_br

Conflicts:
build-config/conf/version
build-config/make/kernel.make
packages/cafe/clobjects.py
patches/bcm-sdk/dma-debug.patch
patches/kernel/series
tests/l3/l2_l3_lag_test.py
utilities/distro-cmd
utilities/packages/autolib/netobjects.py

10 years agoFix error flag for cases where errors are ignored (part of commit
Roopa Prabhu [Thu, 3 Jul 2014 21:43:26 +0000 (14:43 -0700)]
Fix error flag for cases where errors are ignored (part of commit
3afb698d60a7ec0bb3029efccc82c0bd1aa49197)

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + precommit

10 years agoexit with non-zero return code if any of the ifaces have errors
Roopa Prabhu [Wed, 2 Jul 2014 17:03:02 +0000 (10:03 -0700)]
exit with non-zero return code if any of the ifaces have errors

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + error cases + precommit

uses a class variable to store return value

10 years agoFix splits everywhere to include space and tabs. Use regex split
Roopa Prabhu [Sat, 28 Jun 2014 06:44:36 +0000 (23:44 -0700)]
Fix splits everywhere to include space and tabs. Use regex split

Ticket: CM-3121
Reviewed By:
Testing Done: Ran precommit

10 years agoFix splits everywhere to include space and tabs. Use regex split
Roopa Prabhu [Sat, 28 Jun 2014 06:44:36 +0000 (23:44 -0700)]
Fix splits everywhere to include space and tabs. Use regex split

Ticket: CM-3121
Reviewed By:
Testing Done: Ran precommit

10 years agoFix handling of interfaces with `--allow CLASS`
Roopa Prabhu [Wed, 25 Jun 2014 22:23:04 +0000 (15:23 -0700)]
Fix handling of interfaces with `--allow CLASS`

Ticket: CM-3105
Reviewed By:
Testing Done: precommit and some interface class tests

- the patch mostly involves code reorg

10 years agoMerge branch 'CumulusLinux-2.1.0_release_br' into CumulusLinux-2.1_br
John Berezovik [Wed, 18 Jun 2014 18:23:55 +0000 (11:23 -0700)]
Merge branch 'CumulusLinux-2.1.0_release_br' into CumulusLinux-2.1_br

Conflicts:
packages/cafe/commands/vxlan_lib.py
packages/cl-utilities/bin/cl-ns-mgmt
switchd/sync.c

10 years agoFix scheduler for --allow <classes> option
Roopa Prabhu [Sun, 15 Jun 2014 05:53:23 +0000 (22:53 -0700)]
Fix scheduler for --allow <classes> option

Ticket:
Reviewed By: nobody
Testing Done: Tested --allow <classes>

10 years agoFix whitespace issue + uninitialized variable issue
Roopa Prabhu [Fri, 13 Jun 2014 13:15:40 +0000 (06:15 -0700)]
Fix whitespace issue + uninitialized variable issue

Ticket: CM-2997
Reviewed By: shm
Testing Done: Ran precommit

10 years agoFix upperiface check when ifdown is run with -a
Roopa Prabhu [Fri, 13 Jun 2014 13:08:40 +0000 (06:08 -0700)]
Fix upperiface check when ifdown is run with -a

Ticket: CM-3007
Reviewed By: shm + patch was pasted in the bug for review
Testing Done: ran precommit + maliks test + malik ran his test on his
box

When -a is specified ifupdown2 works on all interfaces and since the the
upperiface check is a bit expensive i had a "skip" on that.
And so far all the user commands i have seen only work on the $IFACE and
not its dependents. So, never hit this case.

10 years agoFix whitespace issue + uninitialized variable issue
Roopa Prabhu [Fri, 13 Jun 2014 13:15:40 +0000 (06:15 -0700)]
Fix whitespace issue + uninitialized variable issue

Ticket: CM-2997
Reviewed By: shm
Testing Done: Ran precommit

10 years agoFix upperiface check when ifdown is run with -a
Roopa Prabhu [Fri, 13 Jun 2014 13:08:40 +0000 (06:08 -0700)]
Fix upperiface check when ifdown is run with -a

Ticket: CM-3007
Reviewed By: shm + patch was pasted in the bug for review
Testing Done: ran precommit + maliks test + malik ran his test on his
box

When -a is specified ifupdown2 works on all interfaces and since the the
upperiface check is a bit expensive i had a "skip" on that.
And so far all the user commands i have seen only work on the $IFACE and
not its dependents. So, never hit this case.

10 years agoprefix ethtool attributes with "link-" to be compatible with
Roopa Prabhu [Thu, 12 Jun 2014 13:27:29 +0000 (06:27 -0700)]
prefix ethtool attributes with "link-" to be compatible with
native ifupdown + documentation fixes

Ticket: CM-3000
Reviewed By: trivial + doc related
Testing Done: Ran precommit

10 years agoprefix ethtool attributes with "link-" to be compatible with
Roopa Prabhu [Thu, 12 Jun 2014 13:27:29 +0000 (06:27 -0700)]
prefix ethtool attributes with "link-" to be compatible with
native ifupdown + documentation fixes

Ticket: CM-3000
Reviewed By: trivial + doc related
Testing Done: Ran precommit

10 years agoFix typo
Roopa Prabhu [Sat, 7 Jun 2014 15:14:10 +0000 (08:14 -0700)]
Fix typo

Ticket: CM-2911
Reviewed By: pbendale
Testing Done:

10 years agoFix bash completion for sudo users (mostly cosmetic) + man page and
Roopa Prabhu [Sat, 7 Jun 2014 06:00:24 +0000 (23:00 -0700)]
Fix bash completion for sudo users (mostly cosmetic) + man page and
example fixes

Ticket: CM-2911
Reviewed By: CCR-1637
Testing Done: tested ifupdown2 sanity and bash completion

The python argcomplete module that i use for ifupdown2 has a limitation
that it does not work with sudo when used in the global mode. But there is
a workaround for it online (long story short...instead of enabling the global
argparse complete ...the author recommends registering argparse complete bash
completion individually for your script). This patch does just that.

This patch also moves the udev overrides to their respective packages.
Two of them are owned by ifupdown2.

Conflicts:
rootconf/default/home/cumulus/sysroot-complete

10 years agoFix typo
Roopa Prabhu [Sat, 7 Jun 2014 15:14:10 +0000 (08:14 -0700)]
Fix typo

Ticket: CM-2911
Reviewed By: pbendale
Testing Done:

10 years agoFix bash completion for sudo users (mostly cosmetic) + man page and
Roopa Prabhu [Sat, 7 Jun 2014 06:00:24 +0000 (23:00 -0700)]
Fix bash completion for sudo users (mostly cosmetic) + man page and
example fixes

Ticket: CM-2911
Reviewed By: CCR-1637
Testing Done: tested ifupdown2 sanity and bash completion

The python argcomplete module that i use for ifupdown2 has a limitation
that it does not work with sudo when used in the global mode. But there is
a workaround for it online (long story short...instead of enabling the global
argparse complete ...the author recommends registering argparse complete bash
completion individually for your script). This patch does just that.

This patch also moves the udev overrides to their respective packages.
Two of them are owned by ifupdown2.

10 years agoAdd close_fds=True in ifupdownbase class
Roopa Prabhu [Tue, 3 Jun 2014 18:11:47 +0000 (11:11 -0700)]
Add close_fds=True in ifupdownbase class

Ticket: CM-2899
Reviewed By:
Testing Done: Tested ifupdown sanity

Just closing all the places where we could leak fds.

10 years agoUse closefds=True and shell=True when executing usercmds
Roopa Prabhu [Sun, 1 Jun 2014 18:12:06 +0000 (11:12 -0700)]
Use closefds=True and shell=True when executing usercmds

Ticket: CM-1438
Reviewed By: reported by purna
Testing Done: Tested with purna's l2 l3 lag test

problem fixed by this patch:
In some cases the child processes executing user cmds seem to hold on to
the lock file fd for a lil longer, preventing another instance of
ifupdown from running immediately after. Seen with two immediate
instances of service networking restarts from scripts when the
interfaces file has many user cmds.

10 years agoFix query-check object for interfaces with multiple iface sections
Roopa Prabhu [Sun, 1 Jun 2014 04:52:16 +0000 (21:52 -0700)]
Fix query-check object for interfaces with multiple iface sections

Ticket: CM-1438
Reviewed By:
Testing Done: ifupdown2 sanity

10 years agoUse closefds=True and shell=True when executing usercmds
Roopa Prabhu [Sun, 1 Jun 2014 18:12:06 +0000 (11:12 -0700)]
Use closefds=True and shell=True when executing usercmds

Ticket: CM-1438
Reviewed By: reported by purna
Testing Done: Tested with purna's l2 l3 lag test

problem fixed by this patch:
In some cases the child processes executing user cmds seem to hold on to
the lock file fd for a lil longer, preventing another instance of
ifupdown from running immediately after. Seen with two immediate
instances of service networking restarts from scripts when the
interfaces file has many user cmds.

10 years agoFix query-check object for interfaces with multiple iface sections
Roopa Prabhu [Sun, 1 Jun 2014 04:52:16 +0000 (21:52 -0700)]
Fix query-check object for interfaces with multiple iface sections

Ticket: CM-1438
Reviewed By:
Testing Done: ifupdown2 sanity

10 years agoremove native ifupdown support from bridge-utils, vlan, ifenslave and
Roopa Prabhu [Thu, 29 May 2014 19:43:03 +0000 (12:43 -0700)]
remove native ifupdown support from bridge-utils, vlan, ifenslave and
mstpctl + some ifupdown2 documentation cleanup

Ticket: CM-1438
Reviewed By:
Testing Done: ifupdown2 sanity testing

Conflicts:
patches/bridge-utils/series

10 years agoremove native ifupdown support from bridge-utils, vlan, ifenslave and
Roopa Prabhu [Thu, 29 May 2014 19:43:03 +0000 (12:43 -0700)]
remove native ifupdown support from bridge-utils, vlan, ifenslave and
mstpctl + some ifupdown2 documentation cleanup

Ticket: CM-1438
Reviewed By:
Testing Done: ifupdown2 sanity testing

10 years agoFix bug during handling multiple iface sections for same interface
roopa [Mon, 26 May 2014 16:03:29 +0000 (09:03 -0700)]
Fix bug during handling multiple iface sections for same interface

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown2 sanity + multiple iface sections for an
interface

- This patch fixes a few shortcomings in the multiple iface sections
for same interface (partly because i was only covering
backward compatibility cases earlier)
- Since this is a very common configuration pattern, this patch cleans
  it up
- also restructures some code
- main change is:
    before:
        for iface in ifaces:
            for op in ops:
                run op on iface

    after:
        for op in ops:
            for iface in ifaces:
                run op on iface

10 years agoFix bug during handling multiple iface sections for same interface
roopa [Mon, 26 May 2014 16:03:29 +0000 (09:03 -0700)]
Fix bug during handling multiple iface sections for same interface

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown2 sanity + multiple iface sections for an
interface

- This patch fixes a few shortcomings in the multiple iface sections
for same interface (partly because i was only covering
backward compatibility cases earlier)
- Since this is a very common configuration pattern, this patch cleans
  it up
- also restructures some code
- main change is:
    before:
        for iface in ifaces:
            for op in ops:
                run op on iface

    after:
        for op in ops:
            for iface in ifaces:
                run op on iface

10 years agoUpdate/add copyright files for Cumulus .debs.
Nolan Leake [Fri, 23 May 2014 19:59:13 +0000 (12:59 -0700)]
Update/add copyright files for Cumulus .debs.

10 years agoUpdate/add copyright files for Cumulus .debs.
Nolan Leake [Fri, 23 May 2014 19:59:13 +0000 (12:59 -0700)]
Update/add copyright files for Cumulus .debs.

10 years agoMove interfaces example generation script to under
roopa [Wed, 21 May 2014 19:39:30 +0000 (12:39 -0700)]
Move interfaces example generation script to under
/usr/share/python-ifupdown2

Ticket: CM-2643
Reviewed By:
Testing Done: Tested ifupdown2 sanity

10 years agoAdd examples and script to generate sample interfaces file
roopa [Mon, 19 May 2014 14:00:12 +0000 (07:00 -0700)]
Add examples and script to generate sample interfaces file

Ticket: CM-2643
Reviewed By:
Testing Done: Tested build/install

This also pulls in python-gvgen package from wheezy sid into our
upstream dir. Previously i had packaged the gvgen module directly
into the ifupdown package

10 years agoMove interfaces example generation script to under
roopa [Wed, 21 May 2014 19:39:30 +0000 (12:39 -0700)]
Move interfaces example generation script to under
/usr/share/python-ifupdown2

Ticket: CM-2643
Reviewed By:
Testing Done: Tested ifupdown2 sanity

10 years agoAdd examples and script to generate sample interfaces file
roopa [Mon, 19 May 2014 14:00:12 +0000 (07:00 -0700)]
Add examples and script to generate sample interfaces file

Ticket: CM-2643
Reviewed By:
Testing Done: Tested build/install

This also pulls in python-gvgen package from wheezy sid into our
upstream dir. Previously i had packaged the gvgen module directly
into the ifupdown package

10 years agomake a few things configurable (check output err/success string +
roopa [Fri, 9 May 2014 16:10:49 +0000 (09:10 -0700)]
make a few things configurable (check output err/success string +
warnings on ifupdown)

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown2 sanity

Some of the above mentioned configurable items can be specified in
ifupdown2.conf

10 years agomake a copy of the indegrees dict in the graph module
roopa [Thu, 8 May 2014 06:20:04 +0000 (23:20 -0700)]
make a copy of the indegrees dict in the graph module

Ticket: CM-2731
Reviewed By:
Testing Done: Tested ifupdown sanity

The graph module modifies the indegrees array and so introduce a copy
of the dict before modifying it.

10 years agoFix stray call to dict which was converting my ordered dict to an unordered dict
roopa [Thu, 8 May 2014 05:48:29 +0000 (22:48 -0700)]
Fix stray call to dict which was converting my ordered dict to an unordered dict

Ticket: CM-2731
Reviewed By:
Testing Done:

This was resulting in eth0 missing its first spot during interface
bringup

10 years agoChange mstpctl show output parsing code (Use mstpctl show using
roopa [Mon, 5 May 2014 20:39:00 +0000 (13:39 -0700)]
Change mstpctl show output parsing code (Use mstpctl show using
param-id). Its less prone to problems.

Ticket: CM-1438
Reviewed By:
Testing Done:

- Also add bpdufilter support
- This also gets rid of caching for mstpctl output

10 years agoinclude only interfaces with no config in the upperiface check
roopa [Fri, 2 May 2014 15:10:59 +0000 (08:10 -0700)]
include only interfaces with no config in the upperiface check

Ticket: CM-1438
Reviewed By:
Testing Done: sanity and ifdown on bridges with vlans that dont have
user config

10 years agoBring back upperiface check during down (One of my recent checkins had
roopa [Wed, 30 Apr 2014 04:45:57 +0000 (21:45 -0700)]
Bring back upperiface check during down (One of my recent checkins had
removed it)

Ticket: CM-2671
Reviewed By:
Testing Done: Tested test case in CM-2671 and ifupdown2 sanity

10 years agosupport json input + multiple instance running check
roopa [Tue, 29 Apr 2014 05:33:33 +0000 (22:33 -0700)]
support json input + multiple instance running check

Ticket: CM-1438
Reviewed By:
Testing Done: Tested sanity and interfaces file in json format

10 years agoman page cleanup + cleanup + minor fixes
roopa [Fri, 25 Apr 2014 23:09:14 +0000 (16:09 -0700)]
man page cleanup + cleanup + minor fixes

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown sanity

10 years agoFix ifupdown2 dpkg-configure error during build
roopa [Wed, 23 Apr 2014 21:36:47 +0000 (14:36 -0700)]
Fix ifupdown2 dpkg-configure error during build

Ticket:
Reviewed By: sergey
Testing Done:

dpkg-configure during build seems to be picking up python2.6 and
python2.6 was complaining about the syntax. Fixed with syntax
compatible with python2.6

10 years agoCosmetic - register level names
roopa [Wed, 23 Apr 2014 05:27:59 +0000 (22:27 -0700)]
Cosmetic - register level names

Ticket:
Reviewed By:
Testing Done: Tested sanity

10 years agoCheck addr_family and addr_method validity
roopa [Wed, 23 Apr 2014 05:25:52 +0000 (22:25 -0700)]
Check addr_family and addr_method validity

Ticket: CM-2302
Reviewed By: trivial
Testing Done: Tested addr family and addr method syntax check

10 years agoUse json.dumps() with 'separator attribute' to separate json object list
roopa [Wed, 23 Apr 2014 04:55:11 +0000 (21:55 -0700)]
Use json.dumps() with 'separator attribute' to separate json object list
dumps + some cosmetic fixes + refactoring

Ticket: CM-2642
Reviewed By: sergey
Testing Done: Tested json output + sanity test

10 years agoFix build error
roopa [Sat, 19 Apr 2014 04:05:03 +0000 (21:05 -0700)]
Fix build error

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoFixes to some corner cases + support for some missing 'options and
roopa [Fri, 18 Apr 2014 21:09:20 +0000 (14:09 -0700)]
Fixes to some corner cases + support for some missing 'options and
attributes' for backward compatibility

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifupdown sanity and new functionality

support for:
- -i <interface file>
- template lookup path and move all template handling to a separate
  module template.py
- new ifupdown2 config file /etc/network/ifupdown2/ifupdown2.conf
- bridge_waitport and bridge_maxwait
- moved addons.conf to /var/lib/ifupdownaddons/

10 years agoFix PATH env for boot environment
roopa [Tue, 15 Apr 2014 05:56:51 +0000 (22:56 -0700)]
Fix PATH env for boot environment

Ticket: CM-2602
Reviewed By: trivial
Testing Done: Tested with pre-up script during boot

10 years agoLink ifdown manpage
roopa [Fri, 11 Apr 2014 19:34:47 +0000 (12:34 -0700)]
Link ifdown manpage

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoFix manpage formatting
roopa [Fri, 11 Apr 2014 19:29:31 +0000 (12:29 -0700)]
Fix manpage formatting

Ticket: CM-1438
Reviewed By:
Testing Done: Checked man page

10 years agoFix a few syntax checker bugs
roopa [Tue, 8 Apr 2014 21:50:15 +0000 (14:50 -0700)]
Fix a few syntax checker bugs

Ticket: CM-2302
Reviewed By:
Testing Done: Tested ifupdown syntax checker + sanity

Also includes fixes to some of the sytax checker problems mentioned in
CM-2509

10 years agoMake ifupdown2 insensitive to '-' and '_' in interface attribute names.
roopa [Mon, 7 Apr 2014 21:38:06 +0000 (14:38 -0700)]
Make ifupdown2 insensitive to '-' and '_' in interface attribute names.

Ticket: CM-2501
Reviewed By:
Testing Done: Tested ifupdown sanity

10 years agocleanup + fix some reload caching issues
roopa [Fri, 4 Apr 2014 22:00:59 +0000 (15:00 -0700)]
cleanup + fix some reload caching issues

Ticket: CM-2508
Reviewed By:
Testing Done: ifreload and ifupdown sanity testing

10 years agoFix statemanager update flag condition + some debug print cleanup
roopa [Tue, 1 Apr 2014 22:21:51 +0000 (15:21 -0700)]
Fix statemanager update flag condition + some debug print cleanup

Ticket: CM-1438
Reviewed By:
Testing Done: ifupdown2 sanity

10 years agoCleanup saved state for down objects on ifdown
roopa [Mon, 31 Mar 2014 05:38:00 +0000 (22:38 -0700)]
Cleanup saved state for down objects on ifdown

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifup/ifdown sanity

This was a pending cleanup activity.

10 years agoCheck for duplicate interfaces
roopa [Sun, 30 Mar 2014 15:15:06 +0000 (08:15 -0700)]
Check for duplicate interfaces

Ticket: CM-2509
Reviewed By:
Testing Done: Tested interfaces file with duplicate entries

Old ifupdown allowed multiple stanza's for the same interface.
To support older files ifupdown2 will continue to support duplicate interfaces.
However this check will warn on interfaces with same config more than
once. The check is done at a higher level during parsing and hence only
does a string compare of the iface section.