1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

24 Commits

Author SHA1 Message Date
Roopa Prabhu
d462f1fa2d Document ifreload new option + add it into init.d networking script
Ticket:
Reviewed By: trivial
Testing Done: Tested build/install/boot + ifupdown2 sanity
2015-01-03 00:27:35 -08:00
Roopa Prabhu
d6e2eb5705 Remove debug print
Ticket:
Reviewed By:
Testing Done:
2014-11-19 17:49:44 -08:00
Roopa Prabhu
6ab14132fb Add exclude args to /etc/default/networking
Ticket: CM-3346
Reviewed By:
Testing Done: Tested service networking restart with exclude interface
list
2014-11-18 16:58:12 -08:00
Roopa Prabhu
261379f01b Add /etc/default/networking to provide an easier way to change
ifupdown logging from /etc/init.d/networking.

Ticket: CM-3891
Reviewed By:
Testing Done: Tested changing default networking parameters

- This provides a way to log to syslog
- if syslog is not enabled, msgs are output to stdout (in case of boot
  these should be captured by bootlog in > 2.5)

Note that these values only affect logging from the
/etc/init.d/networking script and has nothing to do with ifupdown2
logging when ifupdown2 is used outside of /etc/init.d/networking
2014-11-07 15:18:42 -08:00
Roopa Prabhu
acc7dbc5e3 Fix leftover func call possibly due to merge + some cleanup
Ticket: CM-3542
Reviewed By:
Testing Done:
2014-08-26 16:17:49 -07:00
Cumulus Builds
1d46fe02eb 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
2014-08-24 18:39:31 -07:00
Wilson Kok
45aa75e895 Revert "log /etc/init.d/networking errors into syslog using /usr/bin/logger"
This reverts commit 99d97bfcd931d40b84387f073a6c1b16866fc1e2.
2014-07-27 21:28:46 -07:00
Roopa Prabhu
ed7b734945 Remove exclude lo
Ticket: CM-3300
Reviewed By:
Testing Done: Tested reboot/shutdown and service networking restart
2014-07-22 15:34:15 -07:00
Roopa Prabhu
3808becfbc 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
2014-07-16 14:07:49 -07:00
Roopa Prabhu
1e5abf8afa 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
2014-07-09 20:23:21 -07:00
Roopa Prabhu
3e95a3dab5 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.
2014-06-01 12:17:40 -07:00
Roopa Prabhu
69cf2f0de7 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.
2014-06-01 11:12:06 -07:00
roopa
31358310de 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
2014-05-21 12:45:46 -07:00
roopa
883f7f83f2 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
2014-05-19 07:00:12 -07:00
roopa
a690dfae1b ip batch support for mstp bridges + add support for multiple globs in a
single port expression + cleanup

Ticket: CM-1438
Reviewed By:
Testing Done:

This has left some dead code in. cleanup comming in subsequent patches.
ip batch support is not complete. It currently works only for mstpctl
bridges. more coming ..
2014-02-27 22:23:03 -08:00
roopa
03964dc48d revert accidental checkin: ifup with debug option in
/etc/init.d/networking

Ticket: CM-1438
Reviewed By:
Testing Done:
2014-02-24 21:17:19 -08:00
roopa
31a5f4c364 cleanup state manager + remove some dead code
Ticket: CM-1438
Reviewed By:
Testing Done:
2014-02-24 11:07:59 -08:00
roopa
e938bfeccd workaround to fix dhcp delay at bootup
Ticket: CM-2317
Reviewed By:
Testing Done:

still investigating the iproute delay.
2014-02-20 13:11:22 -08:00
roopa
83c1f241fd minor fixes + cleanup + update manpage
Ticket: CM-1438
Reviewed By:
Testing Done:

- simplified the dot generator
2014-02-15 21:39:13 -08:00
roopa
37c0543d34 More fixes and changes
Ticket: CM-1438
Reviewed By:
Testing Done: unit tested with all kinds of interfaces

some high level changes
- moved ipv4/ipv6 address handling in a single module. dhcp
into a separate module.
- new link 'up' module
- igmp fixes
- many other fixes
2014-01-30 22:36:41 -08:00
roopa
7ac4828157 minor init.d fixes
Ticket: CM-1438
Reviewed By:
Testing Done:
2014-01-30 19:54:05 -08:00
roopa
579b3f255d some fixes + template support
Ticket: CM-1438
Reviewed By:
Testing Done:

This patch adds support for mako style templates.

Example:
% for v in [20,30,40]:
auto vlan${v}
    iface vlan${v} inet static
    address 10.20.${v}.3/24
    mstpctl_ports  glob swp1-52.${v}
    mstpctl_stp on
% endfor

open items:
    - currently templates will only work if python-mako is installed
      (Its apt-gettable from debian wheezy).
2013-12-20 13:59:37 -08:00
roopa
3e8ee54f30 more fixes + cleanup + support for --exclude argument
Ticket: CM-1438
Reviewed By:
Testing Done:
2013-11-13 16:07:15 -08:00
roopa
a6f80f0e0b python-ifupdown initial checkin
Ticket: CM-1438
Reviewed By: TBD
Testing Done:

- Will checkin build files after some more testing and performance
  numbers. It will go into the testing repo for 2.0

- All TODO items are part of the checked in TODO file
2013-11-04 06:06:11 -08:00