[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] Patch discussion: Add NTP field to PIF to ntp configure
This is a simple patch, but i think could be very useful. Until now you only can configure ntp on installation or editing manully ntp.conf file. Idea is has a field called NTP on PIF class, and when interface-reconfigure is called add this servers to ntp.conf and reload ntpd service. I attach the patch, example to test it: xe pif-reconfigure-ip uuid=eb6e90c5-55f2-58b2-0748-0b8ff1963587 NTP=es.pool.ntp.org,ru.pool.ntp.org mode=static IP=10.110.1.37 gateway=10.110.1.1 DNS=193.146.32.86 netmask=255.255.255.0 Now you can see on /etc/ntp.conf on bottom: server es.pool.ntp.org server ru.pool.ntp.org and " ntpq -c peers" shows the new values: *ntp01.srv.cat 150.214.94.5 2 u - 64 377 26.617 -85.780 1.165 +81.95.131.130 129.69.1.153 2 u 12 64 257 88.981 -84.231 1.933 And you can see #xe pif-param-list uuid=eb6e90c5-55f2-58b2-0748-0b8ff1963587|grep NTP NTP ( RO): es.pool.ntp.org,ru.pool.ntp.org NTP is not a required parameter to reconfigure a PIF. Attachment:
ntp.patch _______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |