Hi [+list], For example, you could use xe or xapi to set the other-config value on a PIF to indicate you want STP.
# xe pif-param-set other-config:stp=true uuid=SOME_UUID Then you could use some monitoring script or hook into the interface configuration scripts to look at this value and enable STP if it is not already enabled. # xe pif-param-get param-name=other-config param-key=stp uuid=SOME_UUID true -Reid On Wed, Oct 16, 2013 at 2:35 AM, Alexandru Coseru <alex.cos...@simplus.ro>wrote: > Hello,**** > > ** ** > > Can you give me an example?**** > > ** ** > > We are just starting with XEN and all machines in the network are > configured with 2 NIC’s and STP switches.**** > > ** ** > > ** ** > > Best Regards,**** > > ** ** > > *From:* Reid Price [mailto:rpr...@nicira.com] > *Sent:* Thursday, September 19, 2013 11:51 PM > *To:* Faisal Ali > *Cc:* Alexandru Coseru; discuss@openvswitch.org > *Subject:* Re: [ovs-discuss] Openvswitch configuration persistence**** > > ** ** > > Hi guys [+list],**** > > ** ** > > You might find that you have unexpected behavior down the road with that > tactic.**** > > I would perhaps suggest an approach where you set a value (using xapi) for > the**** > > PIF's other-config, and then run your own script (perhaps on bootup) that > finds**** > > PIF and does configuration based upon that field.**** > > ** ** > > Otherwise you are likely to cause Xenserver to freak out at some point, or > to**** > > have stale network configuration floating around.**** > > ** ** > > -Reid**** > > ** ** > > On Thu, Sep 19, 2013 at 10:46 AM, Faisal Ali <justhu...@gmail.com> wrote:* > *** > > Yes, I found that on Xenserver 6.2 the openvswitch startup script resets > the ovs configuration. With my limited knowledge of scripting I managed to > find a particular lines and comment them out. That stopped Xen from wiping > out the ovs configs**** > > ** ** > > Here the lines**** > > ** ** > > if test ! -e /var/run/openvswitch.booted; then**** > > touch /var/run/openvswitch.booted**** > > set "$@" --delete-bridges**** > > fi**** > > ** ** > > ** ** > > *From: *Alexandru Coseru <alex.cos...@simplus.ro> > *Date: *Mon, 16 Sep 2013 13:28:03 +0300 > *To: *Faisal Ali <justhu...@gmail.com>, <rpr...@nicira.com> > *Subject: *Re: [ovs-discuss] Openvswitch configuration persistence**** > > ** ** > > ** ** > > ** ** > > Hello guys,**** > > **** > > ** ** > > ** ** > > Did somebody found a solution for the problem below?**** > > **** > > We want to use openvswitch to a configure a host with 2 nic with STP ON (for > switch redundacy).**** > > **** > > Best Regards,**** > > Alex**** > > **** > > **** > > **** > > **** > > Thanks for the clarification Reid**** > > **** > > On Aug 26, 2013, at 12:20 PM, Reid Price <rpr...@nicira.com> wrote:**** > > **** > > ** ** > > ** ** > > > OVS by itself saves configuration through boots, etc., ovsdb is > > transactional **** > > > (usually stored in /etc/openvswitch/conf.db). Xen removes that config on > > boot **** > > > up.**** > > > **** > > > On Aug 26, 2013, at 7:51 AM, Faisal Ali <justhu...@gmail.com> wrote:**** > > > **** > > >> Thank you Reid, so just so Iam clear, is it because ovs is not meant to > >> save **** > > >> the config? The reason I ask is I read it in a blog that it does save > >> it.**** > > ** ** > > ** ** > > >> **** > > >> On Aug 26, 2013, at 3:40 AM, Reid Price <rpr...@nicira.com> wrote:**** > > >> **** > > >>> Hi Faisal,**** > > >>> **** > > >>> Xen only persists its own OVS information, and recreates it from scratch > >>> **** > > >>> (xapi information) at boot.**** > > >>> **** > > >>> -Reid**** > > >>> **** > > >>> On Aug 25, 2013, at 5:41 PM, Faisal Ali <justhu...@gmail.com> wrote:**** > > >>> **** > > >>>> Hi,**** > > >>>> **** > > >>>> I am using xenserver 6.2 which has openvswitch version 1.4.6 running.**** > > >>>> **** > > >>>> When I configure ovs using ovs commands it does not save the > >>>> configuration **** > > >>>> and its lost after reboot. **** > > >>>> **** > > >>>> I am not sure if this how ovs works or Xen has a modified implementation > >>>> **** > > ** ** > > ** ** > > >>>> of ovs that does not allow to permanently save the configuration.**** > > >>>> **** > > >>>> Please let me know what is the correct way if any or my assumptions are > >>>> **** > > ** ** > > ** ** > > >>>> incorrect**** > > >>>> **** > > >>>> Thank you**** > > >>>> **** > > >>>> Faisal Ali**** > > >>>> _______________________________________________**** > > >>>> discuss mailing list**** > > >>>> discuss@openvswitch.org**** > > >>>> http://openvswitch.org/mailman/listinfo/discuss**** > > _______________________________________________**** > > ** ** > > ** ** > > discuss mailing list**** > > discuss@openvswitch.org**** > > http://openvswitch.org/mailman/listinfo/discuss**** > > **** > > ** ** >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss