summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-09 07:39:12 +0200
committerGitHub <noreply@github.com>2020-04-09 07:39:12 +0200
commitd7c1bab9b99689be5b99a5bdac3999229ea788ab (patch)
treede44f656e9017b8bc0fe97ae9bb61adfc1c7f018 /python/vyos/ifconfig/interface.py
parentb102408165037d57453ce4928b93958a54c69dcd (diff)
parenta5d537d2ab3eadc2922a443de28ddd9b20dbb722 (diff)
downloadvyos-1x-d7c1bab9b99689be5b99a5bdac3999229ea788ab.tar.gz
vyos-1x-d7c1bab9b99689be5b99a5bdac3999229ea788ab.zip
Merge pull request #316 from thomas-mangin/T2242
import: T2242: remove all import *
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 96057a943..22c71a464 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -18,21 +18,29 @@ import re
import json
import glob
import time
+from time import sleep
+from os.path import isfile
from copy import deepcopy
+from datetime import timedelta
-from vyos.validate import * # should not * include
-from vyos.util import mac2eui64
-from vyos import ConfigError
-
+from hurry.filesize import size, alternative
from ipaddress import IPv4Network, IPv6Address, IPv6Network
from netifaces import ifaddresses, AF_INET, AF_INET6
-from time import sleep
-from os.path import isfile
from tabulate import tabulate
-from hurry.filesize import size,alternative
-from datetime import timedelta
+from vyos.util import mac2eui64
+from vyos import ConfigError
from vyos.ifconfig.dhcp import DHCP
+from vyos.validate import is_ipv4
+from vyos.validate import is_ipv6
+from vyos.validate import is_intf_addr_assigned
+from vyos.validate import assert_boolean
+from vyos.validate import assert_list
+from vyos.validate import assert_mac
+from vyos.validate import assert_mtu
+from vyos.validate import assert_positive
+from vyos.validate import assert_range
+
class Interface(DHCP):
options = []