1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00: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
2014-07-22 11:15:56 -07:00
2014-07-22 11:15:56 -07:00
2014-08-24 18:39:31 -07:00
2014-07-22 11:15:56 -07:00
2014-02-14 11:13:09 -08:00
2014-03-27 16:53:32 -07:00
2014-07-22 11:15:56 -07:00
2014-07-17 11:44:36 -07:00
2014-07-22 11:15:56 -07:00
2014-07-17 11:44:36 -07:00
2014-07-22 11:15:56 -07:00
2014-07-17 11:44:36 -07:00

python-ifupdown2
================

This package is a replacement for the debian ifupdown package.
It is ifupdown re-written in python. It maintains the original ifupdown
pluggable architecture and extends it further.

The python-ifupdown2 package provides the infrastructure for
parsing /etc/network/interfaces file, loading, scheduling and state
management of interfaces.

It dynamically loads python modules from /usr/share/ifupdownmodules (provided
 by the python-ifupdown2-addons package). To remain compatible with other
packages that depend on ifupdown, it also executes scripts under /etc/network/.
To make the transition smoother, a python module under
/usr/share/ifupdownmodules will override a script by the same name under
/etc/network/.

It publishes an interface object which is passed to all loadble python
modules. For more details on adding a addon module, see the section on
adding python modules.


pluggable python modules:
=========================
Unlike original ifupdown, all interface configuration is moved to external
python modules. That includes inet, inet6 and dhcp configurations.

A set of default modules are provided by the python-ifupdown2-addons deb.

python-ifupdown2 expects a few things from the pluggable modules:
- the module should implement a class by the same name
- the interface object (class iface) and the operation to be performed is
  passed to the modules
- the python addon class should provide a few methods:
	- run() : method to configure the interface.
	- get_ops() : must return a list of operations it supports.
		eg: 'pre-up', 'post-down'
	- get_dependent_ifacenames() : must return a list of interfaces the
	  interface is dependent on. This is used to build the dependency list
	  for sorting and executing interfaces in dependency order.
	- if the module supports -r option to ifquery, ie ability to construct the
      ifaceobj from running state, it can optionally implement the
      get_dependent_ifacenames_running() method, to return the list of
      dependent interfaces derived from running state of the interface.
      This is different from get_dependent_ifacenames() where the dependent
      interfaces are derived from the interfaces config file (provided by the
      user).

Example: Address handling module /usr/share/ifupdownaddons/address.py


build
=====
- get source

- install build dependencies:
    apt-get install python-stdeb
    apt-get install python-docutils

- cd <python-ifupdown2 sourcedir> && ./build.sh

  (generates python-ifupdown2-<ver>.deb)

install
=======

- remove existing ifupdown package
  dpkg -r ifupdown

- install python-ifupdown2 using `dpkg -i`

- or install from deb
    dpkg -i python-ifupdown2-<ver>.deb

- note that python-ifupdown2 requires python-ifupdown2-addons package to
  function. And python-ifupdown2-addons deb has an install dependency on
  python-ifupdown2
Description
No description provided
Readme 6.2 MiB
Languages
Python 99.2%
Shell 0.6%
Makefile 0.2%