@@ -352,6 +352,10 @@ def set_virtual_router(self, virtual_router_name, refresh=False,
352352 Zone: The zone for this interface after the operation completes
353353
354354 """
355+ # Don't add HA or aggregate-group interfaces to virtual router.
356+ if getattr (self , 'mode' , '' ) in ('ha' , 'aggregate-group' ):
357+ return False
358+
355359 return self ._set_reference (
356360 virtual_router_name , VirtualRouter , "interface" , 'list' ,
357361 True , refresh , update , running_config , return_type , False )
@@ -739,6 +743,7 @@ class Layer3Subinterface(Subinterface):
739743 enable_dhcp (bool): Enable DHCP on this interface
740744 create_dhcp_default_route (bool): Create default route pointing to default gateway provided by server
741745 dhcp_default_route_metric (int): Metric for the DHCP default route
746+ decrypt_forward (bool): (PAN-OS 8.1+) Decrypt forward.
742747
743748 """
744749 DEFAULT_MODE = 'layer3'
@@ -805,6 +810,11 @@ def _setup(self):
805810 params .append (VersionedParamPath (
806811 'dhcp_default_route_metric' ,
807812 path = 'dhcp-client/default-route-metric' , vartype = 'int' ))
813+ params .append (VersionedParamPath (
814+ 'decrypt_forward' , vartype = 'yesno' , exclude = True ))
815+ params [- 1 ].add_profile (
816+ '8.1.0' ,
817+ vartype = 'yesno' , path = 'decrypt-forward' )
808818
809819 self ._params = tuple (params )
810820
@@ -933,11 +943,19 @@ class EthernetInterface(PhysicalInterface):
933943 link_state (str): Link state: eg. auto, up, down
934944 aggregate_group (str): Aggregate interface (eg. ae1)
935945 comment (str): The interface's comment
936- ipv4_mss_adjust(int): TCP MSS adjustment for ipv4
937- ipv6_mss_adjust(int): TCP MSS adjustment for ipv6
946+ ipv4_mss_adjust(int): (PAN-OS 7.1+) TCP MSS adjustment for ipv4
947+ ipv6_mss_adjust(int): (PAN-OS 7.1+) TCP MSS adjustment for ipv6
938948 enable_dhcp (bool): Enable DHCP on this interface
939949 create_dhcp_default_route (bool): Create default route pointing to default gateway provided by server
940950 dhcp_default_route_metric (int): Metric for the DHCP default route
951+ enable_untagged_subinterface (bool): (PAN-OS 7.1+) Enable untagged
952+ subinterface
953+ decrypt_forward (bool): (PAN-OS 8.1+) Decrypt forward.
954+ rx_policing_rate (int): (PAN-OS 8.1+) Receive policing rate
955+ tx_policing_rate (int): (PAN-OS 8.1+) Transmit policing rate
956+ dhcp_send_hostname_enable (bool): Enable send firewall or custom hostname
957+ to DHCP server
958+ dhcp_send_hostname_value (string): Set interface hostname
941959
942960 """
943961 ALLOW_SET_VLAN = True
@@ -991,10 +1009,10 @@ def _setup(self):
9911009 condition = {'mode' : 'layer3' }))
9921010 params .append (VersionedParamPath (
9931011 'lldp_enabled' , path = '{mode}/lldp/enable' , vartype = 'yesno' ,
994- condition = {'mode' : 'layer2' }))
1012+ condition = {'mode' : [ 'layer2' , 'layer3' , 'virtual-wire' ] }))
9951013 params .append (VersionedParamPath (
9961014 'lldp_profile' , path = '{mode}/lldp/profile' ,
997- condition = {'mode' : 'layer2' }))
1015+ condition = {'mode' : [ 'layer2' , 'layer3' , 'virtual-wire' ] }))
9981016 params .append (VersionedParamPath (
9991017 'netflow_profile_l2' , path = '{mode}/netflow-profile' ,
10001018 condition = {'mode' : 'layer2' }))
@@ -1032,6 +1050,42 @@ def _setup(self):
10321050 'dhcp_default_route_metric' ,
10331051 path = '{mode}/dhcp-client/default-route-metric' ,
10341052 vartype = 'int' , condition = {'mode' : 'layer3' }))
1053+ params .append (VersionedParamPath (
1054+ 'enable_untagged_subinterface' , exclude = True ))
1055+ params [- 1 ].add_profile (
1056+ '7.1.0' ,
1057+ vartype = 'yesno' , condition = {'mode' : 'layer3' },
1058+ path = '{mode}/untagged-sub-interface' )
1059+ params .append (VersionedParamPath (
1060+ 'decrypt_forward' , exclude = True ))
1061+ params [- 1 ].add_profile (
1062+ '8.1.0' ,
1063+ vartype = 'yesno' , condition = {'mode' : 'layer3' },
1064+ path = '{mode}/decrypt-forward' )
1065+ params .append (VersionedParamPath (
1066+ 'rx_policing_rate' , exclude = True ))
1067+ params [- 1 ].add_profile (
1068+ '8.1.0' ,
1069+ vartype = 'int' , condition = {'mode' : 'layer3' },
1070+ path = '{mode}/policing/rx-rate' )
1071+ params .append (VersionedParamPath (
1072+ 'tx_policing_rate' , exclude = True ))
1073+ params [- 1 ].add_profile (
1074+ '8.1.0' ,
1075+ vartype = 'int' , condition = {'mode' : 'layer3' },
1076+ path = '{mode}/policing/tx-rate' )
1077+ params .append (VersionedParamPath (
1078+ 'dhcp_send_hostname_enable' , exclude = True ))
1079+ params [- 1 ].add_profile (
1080+ '9.0.0' ,
1081+ vartype = 'yesno' , condition = {'mode' : 'layer3' },
1082+ path = '{mode}/dhcp-client/send-hostname/enable' )
1083+ params .append (VersionedParamPath (
1084+ 'dhcp_send_hostname_value' , exclude = True ))
1085+ params [- 1 ].add_profile (
1086+ '9.0.0' ,
1087+ condition = {'mode' : 'layer3' },
1088+ path = '{mode}/dhcp-client/send-hostname/hostname' )
10351089
10361090 self ._params = tuple (params )
10371091
0 commit comments