mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Ticket: CM-7840 Reviewed By: Roopa Prabhu Testing Done: yes, by installing ifupdown .deb file onto dell-s3000-02 This patch adds a new argument '--with-defaults' to 'ifquery' when 'ifquery --with-defaults' is executed, running states of all interface attributes are compared against respective configured attributes from /etc/network/interfaces file, if configured. Otherwise, compared against default attributes from policy file This patch also: (1) fixes ifquery check failure for bridge-* stp attributes. (2) removes vrf-default-route and vrf-cgroup attributes from ifupdown2 policy and just have the vrf-helper attribute Signed-off-by: Nikhil <nikhil@cumulusnetworks.com>
23 lines
498 B
Python
23 lines
498 B
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright 2015 Cumulus Networks, Inc. All rights reserved.
|
|
#
|
|
# Author: Roopa Prabhu, roopa@cumulusnetworks.com
|
|
#
|
|
#
|
|
|
|
class ifupdownFlags():
|
|
|
|
def __init__(self):
|
|
self.FORCE = False
|
|
self.DRYRUN = False
|
|
self.NOWAIT = False
|
|
self.PERFMODE = False
|
|
self.CACHE = False
|
|
self.WITHDEFAULTS = False
|
|
|
|
# Flags
|
|
self.CACHE_FLAGS = 0x0
|
|
|
|
flags = ifupdownFlags()
|