415 Commits

Author SHA1 Message Date
Mikhail Gordeev
17630ff25f Allow creating hostname without domain part 2020-01-16 19:31:51 +03:00
Mikhail Efremov
d8a8ba5b29 5.1.2-alt1
- Refresh UI after commit changes (closes: #37103).
2019-08-26 17:13:55 +03:00
Mikhail Efremov
f124a49e0a Refresh UI after commit changes
We are need update UI when we commited changes.
See ALT bug #37103.
2019-08-15 19:57:34 +03:00
Mikhail Efremov
168d1ee6eb 5.1.1-alt1
- Fix bridges deleting.
2019-07-11 20:44:27 +03:00
Mikhail Efremov
e715fa299b Fix bridges deleting
Copy/paste is evil.
2019-07-11 20:00:01 +03:00
Mikhail Efremov
bcbec1812b 5.1.0-alt1
- Check for configured FreeIPA domain.
- Allow setup fqdn during system installation (closes: #34224).
- Use /etc/hostname if it exists (closes: #33135).
- Preserve /etc/sysconfig/network file metadata.
2017-11-22 17:30:27 +03:00
Mikhail Efremov
4b67525ab4 Check for configured FreeIPA domain 2017-11-22 17:30:27 +03:00
Mikhail Efremov
7a5fd996e4 Allow setup fqdn during system installation
It is initial setup, don't prevent fqdn to be specified.
2017-11-22 17:30:27 +03:00
Mikhail Efremov
b3984823ce Use /etc/hostname if it exists
See https://bugzilla.altlinux.org/show_bug.cgi?id=33135
2017-11-22 17:30:27 +03:00
Mikhail Efremov
991307e9aa Preserve /etc/sysconfig/network file metadata 2017-11-17 19:49:13 +03:00
Mikhail Efremov
9e05668df0 5.0.4-alt1
- Change for guile22.
- Allow vlan on bonding.
- Qt UI: Show/hide the whole bridge/bonding hbox.
- Qt UI: Add net-bridge and net-bond modules support.
- ajax.scm: Fix bonding/bridge delete button.
- ajax.scm: Drop vlan page leftover.
- backend: Drop unused variables.
2017-04-18 20:53:02 +03:00
Mikhail Efremov
ab01e7518b Change for guile22
Bump alterator version and package *.go files.
2017-04-18 20:50:11 +03:00
Mikhail Efremov
ff354524b4 Allow vlan on bonding
In such configuration can be some troubles (regarding MAC changing,
for example), but let the user to decide to use it or not.
2017-04-18 19:58:36 +03:00
Mikhail Efremov
ea2e63806d Qt UI: Show/hide the whole bridge/bonding hbox
Instead of treat single buttons.
TODO: Do the same for html interface.
2017-04-18 19:57:14 +03:00
Mikhail Efremov
7ee2425ff7 Qt UI: Add net-bridge and net-bond modules support 2017-04-17 21:19:50 +03:00
Mikhail Efremov
ca93bed4d3 ajax.scm: Fix bonding/bridge delete button 2017-04-17 20:23:09 +03:00
Mikhail Efremov
4899f1153b ajax.scm: Drop vlan page leftover 2017-04-17 18:36:52 +03:00
Mikhail Efremov
e69a5c3fac backend: Drop unused variables
Found by shellcheck.
2016-11-22 20:48:09 +03:00
Mikhail Efremov
52c1b48c42 5.0.3-alt1
- check_ip: Use valid_ipv4addr().
2016-06-21 19:35:03 +03:00
Mikhail Efremov
98d3440dce check_ip: Use valid_ipv4addr()
valid_ipv4() from libshell is broken (for example addresses 127.0.0.1
and 198.19.255.9 are not treated as valid).
So use valid_ipv4addr() from alterator-net-functions.
2016-06-21 19:29:18 +03:00
Mikhail Efremov
d3f8f36b45 5.0.2-alt1
- Qt UI: Fix alterator-net-wifi call.
- write_iface: Fix wireless detection.
2016-05-19 20:09:35 +03:00
Mikhail Efremov
49f8cc613c Qt UI: Fix alterator-net-wifi call
Don't use non-existent variable.
2016-05-16 20:32:54 +03:00
Mikhail Efremov
edbc3ef45a write_iface: Fix wireless detection
There is no real_name variable since 5.0.0 version.
2016-05-16 20:31:50 +03:00
Mikhail Efremov
8022e87191 5.0.1-alt1
- QT UI: Fix crash in the "Advanced" page.
2016-03-28 17:57:36 +03:00
Mikhail Efremov
97d6361bd3 QT UI: Fix crash in the "Advanced" page 2016-03-28 15:18:22 +03:00
Mikhail Efremov
27d6d34164 5.0.0-alt1
- Tell NetworkManager to reaload connections if needed.
- Fix configuration list for VLANs.
- Show current network configuration for non-static ifaces
    (closes: #29327), (closes: #19846).
- Show MAC and interface status in the info box (closes: #27802).
- Don't use deprecated function.
- "Startup this interface at boot" checkbox added
    (thx Lenar Shakirov) (closes: #14953).
- Show interface info depending on its type.
- Add alterator-net-bridge support.
- Drop useless comment.
- Replace read_iface_slaves -> read_iface_host_var.
- Use functions from new alterator-net-functions.
- Drop debug output.
- Drop 'interface as bridge' support.
- Simplify commit_cache() a bit.
- Use sort -V to sort VLAN interfaces.
- Remove VLAN page.
2016-03-23 17:32:47 +03:00
Mikhail Efremov
1fdee051ca Tell NetworkManager to reaload connections if needed
NetworkManager no longer monitor configurations files by default,
so we need tell it to re-read configuration.
2016-03-23 16:24:23 +03:00
Mikhail Efremov
7fb48d2cf8 Fix configuration list for VLANs
NM's plugin can't read VLAN configuration.
2016-03-22 21:08:20 +03:00
Mikhail Efremov
10ca589c14 Show current network configuration for non-static ifaces 2016-03-22 21:04:10 +03:00
Mikhail Efremov
eba3f99fae Show MAC and interface status in the info box 2016-03-22 18:51:27 +03:00
Mikhail Efremov
6b8c58855d Don't use deprecated function
Replace ipv4addr_prefix_to_mask() with ipv4_prefix2mask()
2016-03-22 17:45:43 +03:00
Mikhail Efremov
4bbb11627b "Startup this interface at boot" checkbox added
Based on patch from Lenar Shakirov (snejok@).
See ALT bug #14953.
2016-03-22 17:31:11 +03:00
Mikhail Efremov
4d81dbd3ab Show interface info depending on its type
Use different output format for different interface types.
2016-03-22 16:04:41 +03:00
Mikhail Efremov
bde53153a6 Add alterator-net-bridge support 2016-03-21 21:01:07 +03:00
Mikhail Efremov
2a99dfe7fc Drop useless comment
Not so bad now.
2016-03-18 20:26:11 +03:00
Mikhail Efremov
716a0540fc Replace read_iface_slaves -> read_iface_host_var
It is replaced in the alterator-net-functions.
2016-03-18 20:26:11 +03:00
Mikhail Efremov
985acb796d Use functions from new alterator-net-functions
Drop our own functions and use functions from alterator-net-functions.
2016-03-18 17:23:54 +03:00
Mikhail Efremov
44110ce4d8 Drop debug output 2016-03-16 17:38:21 +03:00
Mikhail Efremov
855f49fd85 Drop 'interface as bridge' support
This is remnants for old support of virtual machines.
It make no sense nowaday. Bridges support should be added as separate
module later.
2016-03-16 17:38:21 +03:00
Mikhail Efremov
d457b0c170 Simplify commit_cache() a bit 2016-03-16 17:38:21 +03:00
Mikhail Efremov
02347c165f Use sort -V to sort VLAN interfaces
This makes sort output more human-readable in case of VLANs.
2016-03-15 17:47:28 +03:00
Mikhail Efremov
b1211930e6 Remove VLAN page
It was splitted in the separate alterator module
alterator-net-vlan.
2016-03-11 20:55:37 +03:00
Mikhail Efremov
4e250ccc08 4.20.2-alt1
- Fix VLAN name check.
2015-01-16 19:33:09 +03:00
Mikhail Efremov
887b961d50 Fix VLAN name check.
Apparently VLAN name's lenght can be more then 1 symbol :).
2015-01-15 21:45:34 +03:00
Mikhail Efremov
adb1c3c559 4.20.1-alt1
- Fix bond checking.
2014-12-29 21:28:53 +03:00
Mikhail Efremov
e95bb2859c Fix bond checking.
Etcnet can only use 'static' configuration for bond interface.
And check it in the write_iface() before configuration of any
interfaces will be changed.
2014-12-29 21:21:41 +03:00
Mikhail Efremov
90a185ccde 4.20.0-alt1
- Fix list_bond_cached().
- Fix read_iface_slaves_cached().
- Fix is_bond().
- Check that bond has slaves before commit.
- Make alterator-net-wifi optional.
- Slightly improve html UI.
- Check VLAN interface name.
- Check default gateway.
- Fix ifaces_have_host regexp.
- Fix DNS addresses check.
- Fix avail_controlled list getting.
- Allow create bridge for eth interfaces only.
- Add alterator-net-bond support.
2014-12-26 18:09:07 +03:00
Mikhail Efremov
3cd4f775c0 Fix list_bond_cached().
Filter out bond ifaces which marked as removed in the cache.
2014-12-26 17:06:45 +03:00
Mikhail Efremov
7001955cbe Fix read_iface_slaves_cached().
Read slaves from cached options only (if exists).
2014-12-26 16:59:33 +03:00
Mikhail Efremov
b57384325d Fix is_bond(). 2014-12-26 16:46:03 +03:00