Remove unused variables 'LOG'

Perhaps it will be used for debbuging, but now
it's unused.

Change-Id: I1e9c612a13e5673a762b673117d64169fbf4f2a8
This commit is contained in:
Yang Li 2016-01-26 16:07:24 +08:00
parent 830e30e5b1
commit 972fc12594
6 changed files with 2 additions and 21 deletions

View File

@ -15,7 +15,6 @@
# under the License.
import argparse
import logging
import re
import socket
import struct
@ -25,9 +24,6 @@ from astara_router.drivers import base
from astara_router.models import Network
LOG = logging.getLogger(__name__)
def send_gratuitous_arp():
parser = argparse.ArgumentParser(
description='Send a gratuitous ARP'

View File

@ -15,7 +15,6 @@
# under the License.
import logging
import random
import textwrap
@ -23,7 +22,6 @@ from astara_router.drivers import base
from astara_router import utils
LOG = logging.getLogger(__name__)
CONF_PATH = '/etc/bird/bird6.conf'
DEFAULT_AREA = 0

View File

@ -15,7 +15,6 @@
# under the License.
import logging
import os
import time
@ -23,7 +22,6 @@ from astara_router.drivers import base
from astara_router import utils
LOG = logging.getLogger(__name__)
CONF_DIR = '/etc/dnsmasq.d'
RC_PATH = '/etc/init.d/dnsmasq'
DEFAULT_LEASE = 86400
@ -141,7 +139,7 @@ class DHCPManager(base.Manager):
Restarts dnsmasq service using the system provided init script.
"""
try:
utils.execute(['/etc/init.d/dnsmasq', 'stop'], self.root_helper)
utils.execute([RC_PATH, 'stop'], self.root_helper)
except:
pass
@ -151,7 +149,7 @@ class DHCPManager(base.Manager):
remaining -= 1
try:
utils.execute(
['/etc/init.d/dnsmasq', 'start'], self.root_helper
[RC_PATH, 'start'], self.root_helper
)
return
except Exception:

View File

@ -14,15 +14,11 @@
# License for the specific language governing permissions and limitations
# under the License.
import logging
from astara_router.drivers import base
from astara_router import utils
LOG = logging.getLogger(__name__)
class HostnameManager(base.Manager):
EXECUTABLE = '/bin/hostname'

View File

@ -16,14 +16,12 @@
import json
import logging
from astara_router.defaults import internal_metadata_port
from astara_router.drivers import base
from astara_router.utils import execute, replace_file
LOG = logging.getLogger(__name__)
CONF_PATH = '/etc/metadata.conf'

View File

@ -15,17 +15,12 @@
# under the License.
import logging
import netaddr
from astara_router.drivers import base
from astara_router import utils
LOG = logging.getLogger(__name__)
class PingManager(base.Manager):
"""
A class which provide a facade to the system ping utility. Supports both