Commit Graph

54 Commits

Author SHA1 Message Date
leiaibj
1616e26c94 Fix a bug for hostname validation, merge into 2.8 branch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 01:57:33 +00:00
leiaibj
b327574f26 1. support minus network incremental value. 2. resolve can not discover nodes issue. 3. create new command noderegenips: for supporting reconfigure nic ips without reinstall
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 08:55:14 +00:00
xq2005
93a23bc8d2 enable ip forwarding on debian/ubuntu when running xcatconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 05:14:34 +00:00
leiaibj
3fd2310ec6 1. resolve #3283: a typo issue. 2. drop uselessness method isReservedIP. 3. do not validate IP address whlie creating an unmanaged device. 4. Correct some messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 08:20:19 +00:00
nott
f1ac1431d6 add support for new nics table delimiter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:23:12 +00:00
leiaibj
7b75b8b766 update hostname validate rule: only 0-9 a-z and - are valid characters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14815 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 09:17:27 +00:00
ligc
4b32bc602e fix a typo in my_nets, to not throw away all the remote networks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 02:08:09 +00:00
leiaibj
b61ff28739 Create FQDN verify while createing a unmanaged node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14359 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 09:03:03 +00:00
ligc
588a72d358 fix for bug 3168: safeguard code in NetworkUtils::ishostinsubnet, for 127.0.0.1 subnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 14:48:48 +00:00
ligc
ce737cfcda fix a syntax error in xCAT::NetworkUtils->getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 02:53:51 +00:00
nott
915492b44a remove msgs from getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 13:48:48 +00:00
ligc
8d07e61c14 Add NetworkUtils::setup_ipv6_forwarding
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14099 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 11:25:12 +00:00
ligc
2cb4c75e2f undo the CMM password expire changing code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 12:34:41 +00:00
linggao
0592ad03d6 changed the monitoring code to use nmap for getting node status
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 15:05:57 +00:00
leiaibj
bef2a2a82e Node management sprint2 works, reviewed by xCAT beijing team
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-07 08:19:36 +00:00
nott
cc76a05db4 add getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 16:56:08 +00:00
zhaoertao
a732cb476d fix bug 3556007: modifications related to Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 04:21:28 +00:00
zhaoertao
64519483ae list out all the functions that has been moved out of Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 07:03:02 +00:00
zhaoertao
571f3e3962 for item: clean up Utils.pm, the code in perl-xCAT/xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:48:50 +00:00
nott
ac30816620 fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:27:50 +00:00
jbjohnso
d5e4736a96 Fix NetworkUtils.pm to work correctly with IPv6 nets with '/64' in netmask field
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-14 16:09:38 +00:00
zhaoertao
533a475aca fix bug 3489503, ipv6 in network table will bring abnormal error for 'rspconfig cmm initnetwork=*'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11647 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-21 03:09:35 +00:00
sjing
0c37139db0 fix the unknown keys bug.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11526 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-09 11:36:25 +00:00
yinle
bb2b37563b fix bug :3466290 lsslp -m -i plugin error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11499 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-07 13:02:53 +00:00
yinle
17e2c2a0d3 Fix bug 3425775: lsslp plugin bug /opt/xcat/lib/perl/xCAT/NetworkUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10840 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-10-19 09:08:01 +00:00
yinle
c1bf9b1413 Add the description of the sub routine get_nic_ip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-10-18 06:30:26 +00:00
yinle
e38949b282 Add a new subroutine, finding the ip and the nic's mapping.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-18 15:30:41 +00:00
jbjohnso
fc317c14fe Make NetworkUtils.pm less fatalistic about IPv6 for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10272 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-11 14:13:46 +00:00
jbjohnso
b43617b2cd Produce a clearer message when IPv6 resolution is attempted without IPv6 capability available
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-28 17:09:24 +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
12ea72629f -Fix NetworkUtils to act no differently before if no arguments are passed to do otherwise.
-Have makedns get v4 and v6 addresses if both are available


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-26 16:07:01 +00:00
jbjohnso
0544006d78 -Fix mistakes in last checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8748 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-26 15:44:42 +00:00
jbjohnso
d0c5d7439b -Expose more capability, for multiple address returns and requesting only v4 or v6 addresses
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-26 15:43:26 +00:00
jbjohnso
737779fc4a -Fix mistake in previous checkin
-Implement 'nodeonmynet' ipv6 linux


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-17 20:24:28 +00:00
jbjohnso
27d0da5897 -Abolish unneeded Net::IP module, the calculations can be done consistently between v4 and v6 by simply using BigInts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-17 19:54:25 +00:00
jbjohnso
95e5fbfa0f -Implement phase 1 or IPv6 with DHCP (still needs Utils twek for nodeonmynet)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-17 19:17:38 +00:00
yinle
9d8a543c65 modify the getipaddr so that it would not warning when can't find the according hostname of a IP.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-14 13:34:10 +00:00
vallard
576487921a got rid of yucky undefined variable messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-29 21:12:51 +00:00
ligc
dbce719093 fix for bug 3073397: check the parameter passed to subroutines
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-25 03:08:46 +00:00
linggao
c45a6808d5 minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-26 15:46:11 +00:00
ligc
53b4fdb42e add IPv6 subroutine prefixtomask
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6496 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-17 07:18:00 +00:00
ligc
f8b28be009 ipv6 fix: when then net and mask are IPv4 ones, the ip may be IPv6
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-02 03:20:38 +00:00
linggao
a90e82012a ipforwarding on sn for AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6285 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-01 14:27:13 +00:00
linggao
fe30dd3adc makeroutes phase 1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-27 15:13:26 +00:00
ligc
1c68c2a98c fix for IPv6 link local address subroutine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-27 07:40:10 +00:00
ligc
d33c3d4443 in some older AIX versions, the Socket6.pm is not available, but will have IPv6 address ::1 configured on loopback, need to avoid passing ipv6 address to inet_* calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-14 01:36:40 +00:00
ligc
bb5e6cf4d1 fix gethostnameandip documentation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-13 11:59:49 +00:00
ligc
d75d747b19 ipv6 fix, replace the Socket library calls with NetworkUtils subroutines
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-11 14:03:58 +00:00
ligc
4915e69508 ipv6 subroutines
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-07 09:56:01 +00:00
ligc
0d4b44bc80 ipv6 support for ishostinsubnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6015 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-07 09:27:18 +00:00