]> git.proxmox.com Git - mirror_ifupdown2.git/log
mirror_ifupdown2.git
9 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.

9 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

9 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.

9 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:

9 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

9 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.

9 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

9 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 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 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.

10 years agoFix print methods to not follow dependents when -a is set (-a already
roopa [Sat, 29 Mar 2014 21:51:37 +0000 (14:51 -0700)]
Fix print methods to not follow dependents when -a is set (-a already
covers all dependents)

Ticket: CM-2505
Reviewed By:
Testing Done: Tested ifquery

10 years agowarn on template rendering errors and continue + --syntax-check option to ifup +
roopa [Fri, 28 Mar 2014 13:03:14 +0000 (06:03 -0700)]
warn on template rendering errors and continue + --syntax-check option to ifup +
minor parser cleanups

Ticket: CM-2488
Reviewed By:
Testing Done: Tested ifupdown sanity and also the interfaces file in CM-2488

10 years agostate manager test
roopa [Thu, 27 Mar 2014 23:53:32 +0000 (16:53 -0700)]
state manager test

Ticket:
Reviewed By:
Testing Done:

10 years agoRemove batch support when deleting addresses. batching code does not
roopa [Thu, 27 Mar 2014 23:36:54 +0000 (16:36 -0700)]
Remove batch support when deleting addresses. batching code does not
update the cache yet and that can cause problems during add

Ticket: CM-2491
Reviewed By:
Testing Done:

Still working on the cache update support during batching.

10 years agoRemove upper device check warnings + implicitly follow upperifaces when
roopa [Thu, 27 Mar 2014 21:00:00 +0000 (14:00 -0700)]
Remove upper device check warnings + implicitly follow upperifaces when
a logical interface comes up

Ticket: CM-2493
Reviewed By:
Testing Done: Tested ifup, ifdown in bond bridge setup

Also, implicitly pick up the upperifaces (even when user has not
specified --with-depends) for logical interfaces.
This is because when a logical interface goes down/deleted, kernel
impilicity deletes its upperifaces. so its better to implicitly bring
up upperifaces.

example

bridge name    bridge id        STP enabled    interfaces
br0        8000.7072cf8c2fca    yes        bond1
                            bond2
br2000        8000.7072cf8c2fca    yes        bond1.2000
                            bond2.2000
br2001        8000.7072cf8c2fca    yes        bond1.2001
                            bond2.2001

bridge name    bridge id        STP enabled    interfaces
br0        8000.000000000000    yes
br2000        8000.000000000000    yes
br2001        8000.000000000000    yes

bridge name    bridge id        STP enabled    interfaces
br0        8000.7072cf8c2fca    yes        bond1
                            bond2
br2000        8000.7072cf8c2fca    yes        bond1.2000
                            bond2.2000
br2001        8000.7072cf8c2fca    yes        bond1.2001
                            bond2.2001

10 years agocleanup + fixes
roopa [Tue, 25 Mar 2014 22:21:19 +0000 (15:21 -0700)]
cleanup + fixes

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

10 years agoOnly warn on ifdown of an interface who has upperifaces still around +
roopa [Mon, 24 Mar 2014 13:28:08 +0000 (06:28 -0700)]
Only warn on ifdown of an interface who has upperifaces still around +
cleanup

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

10 years agocleanup (mostly cosmetic)
roopa [Sun, 23 Mar 2014 05:16:53 +0000 (22:16 -0700)]
cleanup (mostly cosmetic)

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

10 years agoexecute 'up' on upper devices if ifup is called with --with-depends
roopa [Tue, 18 Mar 2014 23:38:00 +0000 (16:38 -0700)]
execute 'up' on upper devices if ifup is called with --with-depends

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

Before this patch, `ifup --with-depends <iface>` only brought up
lowerdevices. Because those were enough for iface to function.

And if ifaces above it (upperdevices) needed fixing, user could just
execute `ifup --with-depends <ifaceupper>`.

But in a recent, bond under a bridge bug in 2.0, got me thinking that
its probably better to up the upperdevices which might be impacted as
well. and this patch does just that.

The patch includes changes to make ifupdown generate dependency
information for all interfaces even if the user requested to operate
on a single interface. This is to get a full view of the interfaces file.
This might add some overhead. Should not change anything during boot.
Still looking at ways to optimize.

10 years agoRemove dead code
roopa [Mon, 17 Mar 2014 13:38:55 +0000 (06:38 -0700)]
Remove dead code

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

10 years agoAdd bash completion support using python-argcomplete
roopa [Thu, 13 Mar 2014 19:06:18 +0000 (12:06 -0700)]
Add bash completion support using python-argcomplete

Ticket:
Reviewed By:
Testing Done: Tested bash completeion for cl-acltool and ifupdown

Caveat: It also completes hidden options.

10 years agoFix upperiface check to not barf when --force is used
roopa [Thu, 6 Mar 2014 22:37:28 +0000 (14:37 -0800)]
Fix upperiface check to not barf when --force is used

Ticket: CM-2366
Reviewed By: trivial
Testing Done: Tested ifup/ifdown with bonds and bridges

Also refactored some code.

10 years agoA few state manager optimizations + and some other fixes
roopa [Thu, 6 Mar 2014 14:41:28 +0000 (06:41 -0800)]
A few state manager optimizations + and some other fixes

Ticket: CM-1438
Reviewed By:
Testing Done:

This also fixes a bug with address handling:
- If the user changed a primary address, flush all the addresses and
  re-add them. Previously, if user added a new primary address, it would
ust get appended to the end of the address list as a secondary address.

10 years agoip batch support for mstp bridges + add support for multiple globs in a
roopa [Fri, 28 Feb 2014 06:23:03 +0000 (22:23 -0800)]
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 ..

10 years agoifudown --no-scripts support
roopa [Wed, 26 Feb 2014 16:09:44 +0000 (08:09 -0800)]
ifudown --no-scripts support

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agorevert accidental checkin: ifup with debug option in
roopa [Tue, 25 Feb 2014 05:17:19 +0000 (21:17 -0800)]
revert accidental checkin: ifup with debug option in
/etc/init.d/networking

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agocleanup state manager + remove some dead code
roopa [Mon, 24 Feb 2014 19:07:59 +0000 (11:07 -0800)]
cleanup state manager + remove some dead code

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoworkaround to fix dhcp delay at bootup
roopa [Thu, 20 Feb 2014 21:11:22 +0000 (13:11 -0800)]
workaround to fix dhcp delay at bootup

Ticket: CM-2317
Reviewed By:
Testing Done:

still investigating the iproute delay.

10 years agoDisable exec of legacy /etc/network/<scripts> for now because of the
roopa [Thu, 20 Feb 2014 17:07:55 +0000 (09:07 -0800)]
Disable exec of legacy /etc/network/<scripts> for now because of the
overhead

Ticket: CM-1438
Reviewed By:
Testing Done:

These are executed with shell=True and python subprocess performance
with shell=True sucks. This seems to have improved in python3. Will try
that out next. And also plan to make this controllable via an option.

This reduces time to ifup by half.

10 years agoremove dhclient -nw option + cleanup
roopa [Thu, 20 Feb 2014 05:30:55 +0000 (21:30 -0800)]
remove dhclient -nw option + cleanup

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoFixes for some corner cases + cleanup
roopa [Wed, 19 Feb 2014 06:25:48 +0000 (22:25 -0800)]
Fixes for some corner cases + cleanup

Ticket: CM-1438
Reviewed By:
Testing Done:

Also includes fix for CM-2307 and some other fixes for primary/secondary
address handling.

10 years agoSupport for manual method + rearrange some code
roopa [Tue, 18 Feb 2014 03:01:37 +0000 (19:01 -0800)]
Support for manual method + rearrange some code

Ticket: CM-1438
Reviewed By:
Testing Done:

- Moved link config to base ifupdown. I had been debating about this,
  this is need to support manual and also the --no-scripts option.
- helps executing only link up/down operations if needed on an interface
- While at it, i also moved the scheduler methods to be classmethods
  instead of instance methods (which again was a pending cleanup task)

10 years agominor fixes + cleanup + update manpage
roopa [Sun, 16 Feb 2014 05:39:13 +0000 (21:39 -0800)]
minor fixes + cleanup + update manpage

Ticket: CM-1438
Reviewed By:
Testing Done:

- simplified the dot generator

10 years agoFix build failure
roopa [Fri, 14 Feb 2014 19:13:09 +0000 (11:13 -0800)]
Fix build failure

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agocleanup, documentation and enable ifupdown2 by default
roopa [Fri, 14 Feb 2014 17:55:19 +0000 (09:55 -0800)]
cleanup, documentation and enable ifupdown2 by default

Ticket: CM-1438
Reviewed By:
Testing Done:

There are a few known issues listed in the TODO and KNOWN_ISSUES files

10 years agocleanup and some documentation
roopa [Fri, 14 Feb 2014 05:37:26 +0000 (21:37 -0800)]
cleanup and some documentation

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoFix l3 lag test failure
roopa [Thu, 13 Feb 2014 06:29:41 +0000 (22:29 -0800)]
Fix l3 lag test failure

Ticket: CM-1438
Reviewed By:
Testing Done: l3 lag test with help from purna

- THe down sequence in the new ifupdown was causing switchd some grief
  (wilson is looking at it). readded the topological sort which i had
removed in favor of only walking the tree. With the fix,i dont see the
switchd problem anymore.
- And another down bug was causing the bond to go away prematurely (only
  with the all depends option). Added a upperdevice list to track upperdev references

10 years agoMerge branch 'CumulusLinux-2.0_br'
John Berezovik [Tue, 11 Feb 2014 22:12:16 +0000 (14:12 -0800)]
Merge branch 'CumulusLinux-2.0_br'

Conflicts:
build-config/conf/snapshot-manifest-powerpc
build-config/make/kernel.make
modules/accton_as5610_52x_cpld.c
packages/cl-platform-config/usr/share/platform-config/accton/as5610_52x/etc/bcm.d/default_config_values
packages/cl-platform-config/usr/share/platform-config/accton/as5610_52x/hw_init.d/S10gpio_init.sh
packages/cl-utilities/dist-packages/cumulus/platformdb.py
packages/cl-utilities/dist-packages/cumulus/platforms/accton.py
packages/ifupdown2-addons/addons/bridge.py
packages/ifupdown2-addons/addons/ifenslave.py
packages/ifupdown2-addons/addons/inet.py
packages/ifupdown2-addons/addons/inet6.py
packages/ifupdown2-addons/addons/mstpctl.py
packages/ifupdown2-addons/addons/vlan.py
packages/ifupdown2-addons/pkg/base.py
packages/ifupdown2-addons/pkg/bridgeutils.py
packages/ifupdown2-addons/pkg/cache.py
packages/ifupdown2-addons/pkg/ifenslaveutil.py
packages/ifupdown2-addons/pkg/iproute2.py
packages/ifupdown2-addons/pkg/modulebase.py
packages/ifupdown2-addons/pkg/mstpctlutil.py
packages/ifupdown2/TODO
packages/ifupdown2/init.d/networking
packages/ifupdown2/pkg/graph.py
packages/ifupdown2/pkg/iface.py
packages/ifupdown2/pkg/ifupdownmain.py
packages/ifupdown2/pkg/networkinterfaces.py
packages/ifupdown2/pkg/scheduler.py
packages/ifupdown2/sbin/ifupdown
patches/kernel/driver-ds100df410-retimer.patch
patches/kernel/platform-accton-as5610_52x.patch
patches/kernel/platform-cel-p2020.patch
patches/kernel/platform-powerpc-85xx-Makefile.patch
patches/kernel/platform-quanta-ly6-p2020.patch
patches/kernel/series
patches/mstpd/igmp_snooop_ifupdown.patch
patches/mstpd/series
patches/quagga/series
switchd/debian/switchd.default
switchd/hal_acl_bcm.c
switchd/hal_bcm.h
switchd/switchd.c

10 years agorename a few options
roopa [Tue, 11 Feb 2014 16:09:28 +0000 (08:09 -0800)]
rename a few options

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agominor ifquery print fixes
roopa [Tue, 11 Feb 2014 14:00:07 +0000 (06:00 -0800)]
minor ifquery print fixes

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoSome compat fixes + some stp precommit test fixes
roopa [Mon, 10 Feb 2014 22:39:18 +0000 (14:39 -0800)]
Some compat fixes + some stp precommit test fixes

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoMore fixes and cleanup
roopa [Sat, 8 Feb 2014 17:05:32 +0000 (09:05 -0800)]
More fixes and cleanup

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoMore fixes and changes
roopa [Fri, 31 Jan 2014 06:36:41 +0000 (22:36 -0800)]
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

10 years agominor init.d fixes
roopa [Mon, 20 Jan 2014 20:02:03 +0000 (12:02 -0800)]
minor init.d fixes

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agosome ifquery fixes + make the default to not follow dependents (
roopa [Sat, 18 Jan 2014 07:10:12 +0000 (23:10 -0800)]
some ifquery fixes + make the default to not follow dependents (
added a --with-depends option)

Ticket: CM-1438
Reviewed By:
Testing Done:

still debating on the default behaviour for following dependents.
for now not following dependents might be better.
When all interfaces are selected, it always follows dependents

10 years agoA whole lot of fixes and some new code (needs some cleanup which will be
roopa [Thu, 16 Jan 2014 14:46:17 +0000 (06:46 -0800)]
A whole lot of fixes and some new code (needs some cleanup which will be
part of subsequent checkins)

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifup, ifdown and ifquery

Conflicts:
packages/ifupdown2-addons/addons/ifenslave.py

10 years agoUpdate TODO lists
roopa [Wed, 15 Jan 2014 22:42:04 +0000 (14:42 -0800)]
Update TODO lists

Ticket:
Reviewed By:
Testing Done:

Conflicts:
packages/ifupdown2/TODO

10 years agoUpdate TODO lists
roopa [Wed, 15 Jan 2014 22:42:04 +0000 (14:42 -0800)]
Update TODO lists

Ticket:
Reviewed By:
Testing Done:

Conflicts:
packages/ifupdown2/TODO

10 years agoUpdate TODO
roopa [Wed, 15 Jan 2014 23:23:38 +0000 (15:23 -0800)]
Update TODO

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoUpdate examples file
roopa [Wed, 15 Jan 2014 22:42:56 +0000 (14:42 -0800)]
Update examples file

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoUpdate TODO lists
roopa [Wed, 15 Jan 2014 22:42:04 +0000 (14:42 -0800)]
Update TODO lists

Ticket:
Reviewed By:
Testing Done:

10 years agominor init.d fixes
roopa [Mon, 20 Jan 2014 20:02:03 +0000 (12:02 -0800)]
minor init.d fixes

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agosome ifquery fixes + make the default to not follow dependents (
roopa [Sat, 18 Jan 2014 07:10:12 +0000 (23:10 -0800)]
some ifquery fixes + make the default to not follow dependents (
added a --with-depends option)

Ticket: CM-1438
Reviewed By:
Testing Done:

still debating on the default behaviour for following dependents.
for now not following dependents might be better.
When all interfaces are selected, it always follows dependents

10 years agoA whole lot of fixes and some new code (needs some cleanup which will be
roopa [Thu, 16 Jan 2014 14:46:17 +0000 (06:46 -0800)]
A whole lot of fixes and some new code (needs some cleanup which will be
part of subsequent checkins)

Ticket: CM-1438
Reviewed By:
Testing Done: Tested ifup, ifdown and ifquery

10 years agoUpdate TODO
roopa [Wed, 15 Jan 2014 23:23:38 +0000 (15:23 -0800)]
Update TODO

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoUpdate examples file
roopa [Wed, 15 Jan 2014 22:42:56 +0000 (14:42 -0800)]
Update examples file

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoUpdate TODO lists
roopa [Wed, 15 Jan 2014 22:42:04 +0000 (14:42 -0800)]
Update TODO lists

Ticket:
Reviewed By:
Testing Done:

10 years agoMerge branch 'CumulusLinux-2.0_br'
John Berezovik [Fri, 10 Jan 2014 21:31:25 +0000 (13:31 -0800)]
Merge branch 'CumulusLinux-2.0_br'

Conflicts:
build-config/conf/linux.vci.config
build-config/conf/snapshot-manifest-powerpc
build-config/make/images.make
build-config/make/kernel.make
packages/cl-utilities/dist-packages/cumulus/platformdb.py
packages/cl-utilities/dist-packages/cumulus/platforms/accton.py
packages/ifupdown2/pkg/ifupdownmain.py
packages/mstpd/debian/mstpd.postinst
packages/mstpd/debian/mstpd.postrm
packages/mstpd/debian/mstpd.preinst
packages/mstpd/debian/mstpd.prerm
patches/bridge-utils/igmp_snoop_support.patch
patches/bridge-utils/series
patches/kernel/network-bridge-igmp-ifupdown-fixes.patch
patches/kernel/platform-cel-p2020.patch
patches/kernel/platform-powerpc-85xx-Makefile.patch
patches/kernel/platform-quanta-ly6.patch
patches/kernel/series
patches/mstpd/igmp_snooop_ifupdown.patch
patches/mstpd/series
tests/portconfig/test_vectors/cel,redstone@None/default/portsbcm
utilities/packages/autolib/netobjects.py

10 years agosome fixes + template support
roopa [Fri, 20 Dec 2013 21:59:37 +0000 (13:59 -0800)]
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).

10 years agoSome fixes in dependency handling
roopa [Sun, 1 Dec 2013 07:52:30 +0000 (23:52 -0800)]
Some fixes in dependency handling

Ticket: CM-1438
Reviewed By:
Testing Done: tested with configs involving vlan devices and bridges

- fix dependency handling which i had broken recently with my last
  checkin (nat reported this one)
- In inet pluggins, dont issue ip addr get unless required (saw cpu
  spike up because of CM-1889)
- and some other minor changes lying in my tree

10 years agoMerge remote-tracking branch 'origin/CumulusLinux-2.0_br'
Wilson Kok [Thu, 21 Nov 2013 00:41:40 +0000 (16:41 -0800)]
Merge remote-tracking branch 'origin/CumulusLinux-2.0_br'

Conflicts:
packages/ifupdown2-addons/addons/bridge.py
packages/ifupdown2-addons/addons/cmdhooks.py
packages/ifupdown2-addons/addons/hooks.py
packages/ifupdown2-addons/addons/ifenslave.py
packages/ifupdown2-addons/addons/inet.py
packages/ifupdown2-addons/addons/inet6.py
packages/ifupdown2-addons/addons/usercmds.py
packages/ifupdown2/KNOWN_ISSUES
packages/ifupdown2/sbin/ifupdown
packages/ifupdown2/setup.py
patches/quagga/vtysh-fix-ipv6-afi-node.patch

10 years agocleanup ifquery for interfaces that were configured but got deleted or
roopa [Thu, 14 Nov 2013 07:00:02 +0000 (23:00 -0800)]
cleanup ifquery for interfaces that were configured but got deleted or
went away

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agomore fixes + cleanup + support for --exclude argument
roopa [Thu, 14 Nov 2013 00:07:15 +0000 (16:07 -0800)]
more fixes + cleanup + support for --exclude argument

Ticket: CM-1438
Reviewed By:
Testing Done:

10 years agoSome fixes + enhancements
roopa [Mon, 11 Nov 2013 06:35:40 +0000 (22:35 -0800)]
Some fixes + enhancements

Ticket: CM-1438
Reviewed By:
Testing Done: Tested installing new ifupdown on the box

- fixed a few things in ifquery
- added new perfmode to skip some of the checks (useful during boot when there is
  no previous state)
- updated doc dir with example
- Added README, TODO and KNOWN_ISSUES file

10 years agoSome fixes + enhancements
roopa [Mon, 11 Nov 2013 06:35:40 +0000 (22:35 -0800)]
Some fixes + enhancements

Ticket: CM-1438
Reviewed By:
Testing Done: Tested installing new ifupdown on the box

- fixed a few things in ifquery
- added new perfmode to skip some of the checks (useful during boot when there is
  no previous state)
- updated doc dir with example
- Added README, TODO and KNOWN_ISSUES file

10 years agopython-ifupdown initial checkin
roopa [Mon, 4 Nov 2013 14:06:11 +0000 (06:06 -0800)]
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