[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ganymede Help] Re: problems with invid fields and xml

Date Mon, 03 Dec 2001 11:22:44 -0500
From "Gaurav Bhargava" <gaurav.bhargava@villanova.edu>

Jon,
The schema definition for the subnet object is.......
<objectdef name="Subnet" id="260">
          <classdef name="arlut.csd.ganymede.custom.Test"/>
          <label fieldid="257"/>
          <fielddef name="SubnetID" id="256">
            <typedef type="numeric">
              <namespace val="SubnetID"/>
            </typedef>
          </fielddef>
          <fielddef name="Name" id="257">
            <typedef type="string">
              <namespace val="SubnetID"/>
            </typedef>
          </fielddef>
          <fielddef name="Base_Address" id="258">
            <typedef type="ip"/>
          </fielddef>
          <fielddef name="Subnet_Mask" id="259">
            <typedef type="ip"/>
          </fielddef>
          <fielddef name="RouterID" id="260">
            <typedef type="invid">
              <vector maxSize="10000"/>
              <targetobject name="Router"/>
            </typedef>
          </fielddef>
          <fielddef name="Broadcast_Address" id="261">
            <typedef type="ip"/>
          </fielddef>
          <fielddef name="Dist-ZoneID" id="262">
            <typedef type="invid">
              <targetobject name="DistributionZone"/>
            </typedef>
          </fielddef>
          <fielddef name="Owner" id="263">
            <typedef type="string">
            </typedef>
          </fielddef>
        </objectdef>

I am using ganymede1.0.8. 
so my xml file looks like this.........The address Object
<object type="Address" id="153.101.0.0">
| | <A-ID>4949</A-ID>
| | <HardWare-ID>005004da4841</HardWare-ID>
| | <Dynamic>true</Dynamic>
| | <Subnet-ID>
| | <invid type="Subnet" id="Tolentine (UNIT and PS)"/>
| | </Subnet-ID>
| | <HostName>
| | <string val="tol-24.unit.villanova.edu"/>
| | </HostName>
| | <PTR-ID>tol-24.unit.villanova.edu</PTR-ID>
| | <SOA-ID>
| | <invid type="Start_of_Authority" id="villanova.edu"/>
| | </SOA-ID>
| | <TTL>3600</TTL>
| | <HostNumber><ip val="153.104.64.39"/></HostNumber>
| | <Owner>kbelen</Owner>
| | </object>

and the subnet object
<object type="Subnet" id="Tolentine (UNIT and PS)">
      <SubnetID>282</SubnetID>
      <Name>Tolentine (UNIT and PS)</Name>
      <Base_Address><ip val="153.101.0.0"/></Base_Address>
      <Subnet_Mask><ip val="255.255.252.0"/></Subnet_Mask>
      <RouterID>
        <invid type="Router" id="153.101.64.1"/>
      </RouterID>
      <Broadcast_Address><ip val="0.0.0.0"/></Broadcast_Address>
    </object>


These objects have other invid fields too that are pointing to 
different other objects in the server that are actually in the server 
and are created when xmlclient scrpit is run on the file ...the only 
problem being none of the invid field seeem to be working .....like in 
the Subnet object i have a RouterID field pointing to a router....a 
router with this id does exist in the server ......and it shows up in 
th RHS of the invid field but some how it fails to add the correct 
entry .........and hence the LHS shows blank and this is happening for 
every invid field!!!!!!!!!!!
Thanks 
Gaurav


----------------------------------------------------------------------------
To make changes to your subscription to the Ganymede Help list, send
mail to majordomo@arlut.utexas.edu.

To unsubcribe, include the line

unsubscribe ganymede-help

in the body of your mail message

Visit the Ganymede web page at http://www.arlut.utexas.edu/gash2

----------------------------------------------------------------------------