From 30dab3a6201976ec220f0d9e1371ea2496601b26 Mon Sep 17 00:00:00 2001 From: hagbard Date: Wed, 21 Aug 2019 19:13:02 -0700 Subject: [interfaceconfig] - linkstate callable via property --- docs/contributing/vyos-api/interface-config.rst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'docs/contributing/vyos-api/interface-config.rst') diff --git a/docs/contributing/vyos-api/interface-config.rst b/docs/contributing/vyos-api/interface-config.rst index cfd7c03a..f4e06c14 100644 --- a/docs/contributing/vyos-api/interface-config.rst +++ b/docs/contributing/vyos-api/interface-config.rst @@ -107,7 +107,7 @@ Sets an interface state either to adminitrativly up or down, regardless of the r interface_instance = Interface("eth2") interface_instance.linkstate = 'up' print (interface_instance.linkstate) - print (interface_instance.get_link_state()) + print (interface_instance.linkstate) .. code-block:: sh @@ -115,11 +115,6 @@ Sets an interface state either to adminitrativly up or down, regardless of the r ip link show dev eth2 4: eth2: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 -get_link_state() -~~~~~~~~~~~~~~~~ -Returns the link status of an interface which can be either ``up``, ``down`` or ``unknown``. The link status ``unknown`` is often visible on uninitialized wireguard interfaces, once traffic was successfully sent and received it will change to state ``up``. However, it is not recommended to assume that wireguard is correctly configured by the interface status, since multiple peers can be configured on a single interface and if only 1 out of 10 is working, the interface status will shown as ``up``. - - remove_interface() ^^^^^^^^^^^^^^^^^^ Removes an interface from the system, given as parameter of the objects instance. @@ -141,7 +136,7 @@ Sets the MTU on a network interface. .. code-block:: sh interface_instance.mtu = 9000 - ''' read mtu from interfacr + ''' read mtu from interface ''' print(interface_instance.mtu) -- cgit v1.2.3