Vinícius Ferrão
f8548ceeb9
fix(networks): validate IPv6 route filtering
2026-07-24 13:07:37 -03:00
Vinícius Ferrão
c97e973f36
fix(networks): skip nexthop and default lines when parsing IPv6 routes
...
`ip -6 route` output for ECMP/multipath routes carries `nexthop` continuation
lines, and a `default` route has no network prefix. donets() treated both as
networks and added bogus entries to the networks table. Skip them alongside
the existing link-local/unreachable/via/lo filtering.
Recovered from the unmerged lenovobuild branch (original 7094ba0c ).
Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com >
2026-07-22 19:18:48 -03:00
Vinícius Ferrão
d2be0c3865
fix(networks): exclude every link-local address from the networks table
...
donets() only skips the exact address 'fe80::/64' when scanning routes, so a
link-local route with any other prefix (e.g. a longer fe80:: subnet) is added
to the networks table as a bogus network. Match any fe80:: prefix instead of
the single literal value.
Recovered from the unmerged lenovobuild branch (original 8b79cf85 ).
Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com >
2026-07-22 19:17:17 -03:00
Mark Gurevich
a9f00e5098
Exclude processing host entries for makenetworks
2021-05-05 13:53:32 -04:00
Jarrod Johnson
1a47868599
Use ip instead of deprecated netstat
2021-05-03 14:51:34 -04:00
Gᴏɴɢ Jie
efc60c8825
Make makedhcp working on RHEL 8 xCAT management node ( #5930 )
...
* Patch dhcp.pm for RHEL 8
* Ignore interface lo while makenetworks
* Revise the comments to reflect the code changes
2019-01-08 15:54:47 +08:00
GONG Jie
b7603c7877
Remove trailing spaces in file xCAT-server/lib/xcat/plugins/networks.pm
2017-12-31 23:59:59 +00:00
Yuan Bai
c88fe766b4
makenetworks only ignore existed network entry. ( #3928 )
2017-09-15 11:07:31 +08:00
bybai
6e16bd9f27
fix CI failure
2017-08-11 04:14:42 -04:00
bybai
7afbaaded1
enhance netname/net/mask duplicate or invalid
2017-08-11 02:42:12 -04:00
yangsong
6ed46ff77f
support service node pool ( #3268 )
2017-06-22 18:04:55 +08:00
Yuan Bai
80e5e96542
fix mtu support ( #3083 )
2017-05-18 01:00:50 -05:00
Mark Gurevich
0a3fbd8d51
perltidy all perl files
2016-07-20 11:40:27 -04:00
lissav
6bb5a53c37
4072
2014-04-17 10:17:21 -04:00
zhaoertao
40e144b4cc
for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/plugin/
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:07:40 +00:00
jbjohnso
08eadca8f7
Duplicate prefix length into 'netmask' field for makenetworks to satisfy odd DB restrictions. Hope strongly no IPv6 code really cares or v4/v6 detection code uses absence of netmask as a cue...
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-11-01 13:38:46 +00:00
sjing
bfa93c73f0
make the default value of networks.nameservers empty.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-13 07:31:18 +00:00
sjing
c955d8935b
support <xcatmaster> keyword in site/networks table.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-05-10 08:25:23 +00:00
ligc
8f32293390
bug 3243565: fix for <xcatmaster> support for networks.gateway
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-03-30 06:06:38 +00:00
ligc
cfb3c68892
change networks.gateway value <myself> to <xcatmaster>
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-03-22 02:22:58 +00:00
ligc
ad652bc828
keyword <myself> as gateway in networks table
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-24 03:15:01 +00:00
jbjohnso
837bbd850a
-Add IP6 networks when makenetworks run if they exist
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-11 20:22:55 +00:00
daniceexi
f9c0de1b52
defect 3111514: fixed some minor syntax problems
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-20 10:03:58 +00:00
jbjohnso
7afadc07fc
Correct mistaken checkin
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-06 16:42:01 +00:00
jbjohnso
d80f159f4d
-Fix autocommit defaulting for realautocommit
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-06 16:40:25 +00:00
ligc
d37c29b4f4
fix for bug 3109394: makenetworks handle gateway in the networks table
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8160 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-11-15 12:26:20 +00:00
ligc
e36edf8a6f
fix for IP6 makenetworks
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-09 09:22:14 +00:00
daniceexi
f678701ed5
defect 2935401: fix the defect that write the nameserver attribute with wrong format
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-20 13:45:18 +00:00
nott
457e9344a4
Fix errors when writing to the database
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-15 20:39:11 +00:00
nott
42961504e0
Enhance makenetworks to support AIX and display option.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-11 17:18:27 +00:00
lissav
d8f4857189
update with use of _xcatpreprocessed
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-15 15:23:35 +00:00
jbjohnso
e34156c3a6
-Have networks/dhcp ignore loopback network
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-07 15:22:59 +00:00
jbjohnso
e68fe9d2db
-Move xCAT-server and client to not have 2.0 in name for trunk
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-03 14:56:33 +00:00