mirror of
https://github.com/clearlinux/WALinuxAgent.git
synced 2026-09-01 19:31:34 +00:00
* update loopback detection to use SIOCGIFFLAGS and IFF_LOOPBACK; add unit tests * adds a check for the wireserver ip, and if it does exist then skip the dhcp lookup and route manipulation; adds unit tests * ensure the first selected interface is the primary, which is that with the default route; adds unit tests * parse the wireserver from the dhcp leases file on disk; distro-specific, this is the ubuntu implementation; adds unit tests * unit test fixes, python 3 changes * code review feedback
18 lines
630 B
Python
18 lines
630 B
Python
# Copyright 2014 Microsoft Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Requires Python 2.4+ and Openssl 1.0+
|
|
#
|
|
|