@@ -535,7 +535,6 @@ def __init__(self, obj):
535
535
self .stateless_reply = False
536
536
# fortigate specific
537
537
self .fortigate_application_id = []
538
- self .interface = None
539
538
540
539
# AddObject touches variables which might not have been initialized
541
540
# further up so this has to be at the end.
@@ -918,8 +917,6 @@ def __str__(self):
918
917
ret_str .append (' destination_zone: %s' % sorted (self .destination_zone ))
919
918
if self .fortigate_application_id :
920
919
ret_str .append (' application_id: %s' % self .fortigate_application_id )
921
- if self .interface :
922
- ret_str .append (' interface: %s' % self .interface )
923
920
924
921
return '\n ' .join (ret_str )
925
922
@@ -1017,9 +1014,6 @@ def __eq__(self, other):
1017
1014
if self .destination_interface != other .destination_interface :
1018
1015
return False
1019
1016
1020
- if self .interface != other .interface :
1021
- return False
1022
-
1023
1017
# tags
1024
1018
if not (
1025
1019
sorted (self .source_tag ) == sorted (other .source_tag )
@@ -1343,8 +1337,6 @@ def AddObject(self, obj):
1343
1337
self .destination_zone .append (x .value )
1344
1338
elif x .var_type is VarType .FORTIGATE_APPLICATION_ID :
1345
1339
self .fortigate_application_id .append (x .value )
1346
- elif x .var_type is VarType .INTERFACE :
1347
- self .interface .append (x .value )
1348
1340
else :
1349
1341
raise TermObjectTypeError (
1350
1342
"%s isn't a type I know how to deal with (contains '%s')"
@@ -1454,8 +1446,6 @@ def AddObject(self, obj):
1454
1446
self .filter_term = obj .value
1455
1447
elif obj .var_type is VarType .FORTIGATE_APPLICATION_ID :
1456
1448
self .fortigate_application_id .append (obj .value )
1457
- elif obj .var_type is VarType .INTERFACE :
1458
- self .interface = obj .value
1459
1449
else :
1460
1450
raise TermObjectTypeError (
1461
1451
"%s isn't a type I know how to deal with" % (type (obj ))
@@ -1826,7 +1816,6 @@ class VarType:
1826
1816
POLICE_BURST = 74
1827
1817
POLICE_PPS = 75
1828
1818
FORTIGATE_APPLICATION_ID = 76
1829
- INTERFACE = 77
1830
1819
1831
1820
def __init__ (self , var_type , value ):
1832
1821
self .var_type = var_type
@@ -2022,7 +2011,6 @@ def __ne__(self, other):
2022
2011
'ICMP_TYPE' ,
2023
2012
'ICMP_CODE' ,
2024
2013
'INTEGER' ,
2025
- 'INTERFACE' ,
2026
2014
'LOGGING' ,
2027
2015
'LOG_LIMIT' ,
2028
2016
'LOG_NAME' ,
@@ -2118,7 +2106,6 @@ def __ne__(self, other):
2118
2106
'header' : 'HEADER' ,
2119
2107
'icmp-type' : 'ICMP_TYPE' ,
2120
2108
'icmp-code' : 'ICMP_CODE' ,
2121
- 'interface' : 'INTERFACE' ,
2122
2109
'logging' : 'LOGGING' ,
2123
2110
'log-limit' : 'LOG_LIMIT' ,
2124
2111
'log_name' : 'LOG_NAME' ,
@@ -2827,9 +2814,6 @@ def p_interface_spec(p):
2827
2814
p [0 ] = VarType (VarType .SINTERFACE , p [4 ])
2828
2815
if p [1 ].find ('destination-interface' ) >= 0 :
2829
2816
p [0 ] = VarType (VarType .DINTERFACE , p [4 ])
2830
- elif p [1 ].find ('interface' ) >= 0 :
2831
- p [0 ] = VarType (VarType .INTERFACE , p [4 ])
2832
-
2833
2817
2834
2818
def p_platform_spec (p ):
2835
2819
"""platform_spec : PLATFORM ':' ':' one_or_more_strings
0 commit comments