# Class VirtualRouter

© 2019 Palo Alto Networks, Inc. All rights reserved.

Licensed under SCRIPT SOFTWARE AGREEMENT, Palo Alto Networks, Inc., at https://www.paloaltonetworks.com/legal/script-software-license-1-0.pdf

  VirtualRouter uses XmlConvertible, PathableName, ReferenceableObject

Located at network-classes/VirtualRouter.php

Methods summary
`public` | # `__construct( mixed $name, mixed $owner )` #### Parameters $name `mixed` $name string $owner `mixed` $owner VirtualRouterStore
`public` | # `load_from_domxml( `DOMElement` $xml )` #### Parameters $xml ``DOMElement`` $xml
`public boolean` | # `setName( string $name )` return true if change was successful false if not return true if change was successful false if not #### Parameters $name `string` $name new name for the VirtualRouter #### Returns `boolean`
`public `StaticRoute[]`` | # `staticRoutes( )` #### Returns ``StaticRoute[]``
`public` | # `addstaticRoute( mixed $staticRoute, mixed $version = 'ip' )`
`public boolean` | # `removeStaticRoute( `StaticRoute` $staticRoute, boolean $cleanInMemory = FALSE )` #### Parameters $staticRoute ``StaticRoute`` $s $cleanInMemory `boolean` $cleanInMemory #### Returns `boolean`
`public `VirtualSystem[]` &` | # `findConcernedVsys( )` #### Returns ``VirtualSystem[]``
`public array` | # `getIPtoZoneRouteMapping( mixed $contextVSYS, mixed $orderByNarrowest = TRUE, mixed $loopFilter = null )` #### Parameters $contextVSYS `mixed` $contextVSYS VirtualSystem $orderByNarrowest `mixed` $orderByNarrowest bool $loopFilter #### Returns `array`
`public string &` | # `getXPath( )` #### Returns `string`

Methods used from XmlConvertible
`(), (), (), (), ()`

Methods used from PathableName
`(), (), ()`

Methods used from ReferenceableObject
`(), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ()`

Properties summary
`public `VirtualRouterStore`` | $owner | `` | #
`protected `StaticRoute[]`` | $_staticRoutes | `array()` | #
`public `InterfaceContainer`` | $attachedInterfaces | `` | #
`public static string` | $templatexml | `'<entry name="**temporarynamechangeme**"><routing-table></routing-table></entry>'` | #

Properties used from XmlConvertible
`$xmlroot`

Properties used from ReferenceableObject
`$name, $refcomphash, $refrules`

Magic properties used from PathableName
`$name, $owner`