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

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.
This commit is contained in:
Roopa Prabhu
2014-06-06 23:00:24 -07:00
parent ab2ca747fc
commit 898c8214d8
8 changed files with 98 additions and 34 deletions

View File

@@ -6,16 +6,12 @@ ifquery
query network interface configuration
-------------------------------------
:Author: roopa@cumulusnetworks.com
:Author: Roopa Prabhu <roopa@cumulusnetworks.com>
:Date: 2014-02-05
:Copyright: Copyright 2014 Cumulus Networks, Inc. All rights reserved.
:Version: 0.1
:Manual section: 8
NAME
====
**ifquery** - query interface configuration
SYNOPSIS
========
@@ -36,7 +32,8 @@ DESCRIPTION
in **/etc/network/interfaces** file.
**ifquery** always works on the current **interfaces(5)** file
**/etc/network/interfaces**.
**/etc/network/interfaces** unless an alternate interfaces file is
provided with the **-i** option.
OPTIONS
=======
@@ -65,13 +62,24 @@ OPTIONS
Exclude interfaces from the list of interfaces to
operate on. Can be specified multiple times
-i INTERFACESFILE, --interfaces INTERFACESFILE
Use interfaces file instead of default
/etc/network/interfaces
-r, --running print raw interfaces file entries
-c, --check check interface file contents against running state
of an interface. Returns exit code 0 on success and
1 on error
-p, --print-dependency {list,dot} print iface dependency in list or dot format
-x, --raw print raw config file entries
-o {native,json}, --format {native,json}
interface display format
-p, --print-dependency {list,dot}
print iface dependency in list or dot format
-s, --syntax-help print supported interface config syntax. Scans all
addon modules and dumps supported syntax from them