Re: Upgrade V20 to 21 -> surveillanceview.xml changed ?

Norbert Steinhoff <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <[email protected]>
Hi Michael,

i know about the breaking changes.
However. Maybe this is a useful hint for others and should be placed to

https://wiki.opennms.org/wiki/Upgrade_Guide:_20_to_21


The surveillance-views.xsd looks the same in V20 and V21

vimdiff both versions -> no changes.
Both versions have:

  <element name="view">
    <complexType>
      <sequence>
        <element ref="this:rows" minOccurs="1" maxOccurs="1" />
        <element ref="this:columns" minOccurs="1" maxOccurs="1" />
      </sequence>
      <attribute name="name" type="string" use="required"/>
      <attribute name="refresh-seconds" type="string" use="optional" default="300" />
    </complexType>
  </element>


When i create a new view in 20 i get columns @first

surveillance-views.xml
...
        <view name="TEST" refresh-seconds="300">
            <columns>
                <column-def label="Servers-1">
                    <category name="Servers"/>
                </column-def>
            </columns>
            <rows>
                <row-def label="Production-1">
                    <category name="Production"/>
                </row-def>
            </rows>
        </view>
...

same in V21 i get rows @first
surveillance-views.xml
...
      <view name="TEST" refresh-seconds="300">
         <rows>
            <row-def label="Production-1">
               <category name="Production"/>
            </row-def>
         </rows>
         <columns>
            <column-def label="Servers-1">
               <category name="server"/>
            </column-def>
         </columns>
      </view>
...

so V21 takes care of the the right order, V20 does'nt care :-)





Best

Norbert 



> Am 20.11.2017 um 14:18 schrieb Seibold, Michael <[email protected]>:
> 
> Hi Norbert,
>  
> did you check the xsd files (probably in /opt/opennms/share/xsds) ?
> There have to be the correct version, sometimes (as the path seems to be hard coded somewhere) there are old xsd- files left over.
>  
> I remember in the release notes there were some mentions about changes in this area so that the default config has the same syntax as changes by the GUI will create. This could explain why you have to change your older config files.
>  
> -Michael
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
> 
> opennms-discuss mailing list
> 
> To *unsubscribe* or change your subscription options, see the bottom of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.