You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Michael Scherer bc6c1afb1e Fix media_type detection on NetBSD
On NetBSD 7.0.1, ifconfig return this:
    $ ifconfig
    ne0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            ec_capabilities=1<VLAN_MTU>
            ec_enabled=0
            address: 00:20:91:45:00:78
            media: Ethernet 10baseT full-duplex
            inet 192.168.156.29 netmask 0xffffff00 broadcast 192.168.156.255

Which result into setup returning this:
    "media_type": "ull-duplex",

So we have to specialise that method, since FreeBSD ifconfig return
something like this:

    ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
        ether 00:20:91:a7:48:45
        inet 192.168.156.11 netmask 0xffffff00 broadcast 192.168.156.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
8 years ago
..
cli Python 3 fixes for ansible-doc. 8 years ago
compat Move py34 mock_open compat to compat/test/mock (#17157) 8 years ago
config Making the switch to v2 10 years ago
errors Move uses of to_bytes, to_text, to_native to use the module_utils version (#17423) 8 years ago
executor Change `v2_playbook_on_start` logic to positively detect legacy plugins 8 years ago
galaxy Cast input role version to string before comparing to available versions (#18269) 8 years ago
inventory Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 8 years ago
module_utils Fix media_type detection on NetBSD 8 years ago
modules Update submodule refs 8 years ago
parsing Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 8 years ago
playbook Correctly reassign implicit block parents when an include is involved 8 years ago
plugins Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 8 years ago
template Remove unnecessary warnings (#18121) 8 years ago
utils added docs for new arg 8 years ago
vars Correct delegated_host_name check 8 years ago
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 9 years ago
constants.py ANSIBLE_SSH_CONTROL_PATH_DIR option added (#18342) 8 years ago
release.py Bumping devel version to 2.3.0 8 years ago
test-requirements.txt Making the switch to v2 10 years ago