Hi Arvind, These are good questions. This is all part of what we've been trying to sort out in another thread on the email list.
I believe we're approaching consensus on these issues, but we may end up deciding to bump all notions of 'state' (both administrative and operational) out of the v1.0 version of the API so we can lock that down for D-4, then tackle the question of state for v1.1 . In general, my feeling is that the dashboard shouldn't have to jump through hoops to deduce what to show... so hopefully we'll get that sorted out and the dashboard logic can be very simple. Dan On Tue, Aug 9, 2011 at 10:32 AM, Arvind Somya <aso...@cisco.com> wrote: > Ram, > > Using the quantum APIs all the dashboard sees from the client is 'ACTIVE' > and 'DOWN' in the port details. > I can show Administratively Down etc. if that info is provided to the > dashboard using the client or some other mechanism. > > I can think of a couple of methods to deduce this to a certain extent by > the dashboard: > > - Using a set of general rules like VIF connected but port down mean > operationally down, no vif plus down means administratively down etc.. > > - Store port history in the dashboard db, administratively down only when > the port has never been turned up since creation or the user explicitly > turns it down. This might lead to discrepancies when switching between the > dashboard, cli and other clients that won't have this data available. > > If the plugin can provide that info then it's just a matter of displaying > whatever the plugin/client returns. Thoughts on this? > > Thanks > Arvind > > > On 08/09/2011 01:14 PM, Ram Durairaj (radurair) wrote: > >> Hi Arvind: >> >> Are you also planning to show, in network speak, Administratively >> UP/Down, Operationaly UP/Down. >> >> We don't have to complicate this..but useful while debugging. >> >> My $0.02 >> >> Ram >> >> -----Original Message----- >> From: >> netstack-bounces+radurair=cisc**o....@lists.launchpad.net<cisco....@lists.launchpad.net> >> [mailto:netstack-bounces+**radurair <netstack-bounces%2Bradurair>= >> cisco.com@lists.**launchpad.net <cisco....@lists.launchpad.net>] On >> Behalf Of Arvind Somya (asomya) >> Sent: Tuesday, August 09, 2011 10:09 AM >> To: netstack@lists.launchpad.net >> Subject: [Netstack] Port states >> >> Hello Netstackers, >> >> I'm trying to write this bit in the dashboard that allows users to >> toggle port states, my problem is that while the FakePlugin defines two >> states 'ACTIVE' and 'DOWN'.. the ovs plugin defines them as 'UP' and >> 'DOWN'. >> >> Is there a way for the dashboard to find out what the supported states >> are from the plugin? I couldn't find any methods in the client or the >> plugin modules. >> >> Thanks >> Arvind >> >> > > -- > Mailing list: > https://launchpad.net/~**netstack<https://launchpad.net/~netstack> > Post to : netstack@lists.launchpad.net > Unsubscribe : > https://launchpad.net/~**netstack<https://launchpad.net/~netstack> > More help : > https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp> > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dan Wendlandt Nicira Networks, Inc. www.nicira.com | www.openvswitch.org Sr. Product Manager cell: 650-906-2650 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- Mailing list: https://launchpad.net/~netstack Post to : netstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~netstack More help : https://help.launchpad.net/ListHelp