mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Add disabled flag to filter definition
This commit is contained in:
@@ -240,20 +240,28 @@ class Ns1Provider(BaseProvider):
|
|||||||
|
|
||||||
_UP_FILTER = {
|
_UP_FILTER = {
|
||||||
'config': {},
|
'config': {},
|
||||||
|
'disabled': False,
|
||||||
'filter': 'up'
|
'filter': 'up'
|
||||||
}
|
}
|
||||||
|
|
||||||
_REGION_FILTER = {
|
_REGION_FILTER = {
|
||||||
'config': {},
|
'config': {},
|
||||||
|
'disabled': False,
|
||||||
'filter': u'geofence_regional'
|
'filter': u'geofence_regional'
|
||||||
}
|
}
|
||||||
_COUNTRY_FILTER = {
|
_COUNTRY_FILTER = {
|
||||||
'config': {},
|
'config': {
|
||||||
|
'remove_no_location': True
|
||||||
|
},
|
||||||
|
'disabled': False,
|
||||||
'filter': u'geofence_country'
|
'filter': u'geofence_country'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# In the NS1 UI/portal, this filter is called "SELECT FIRST GROUP" though
|
||||||
|
# the filter name in the NS1 api is 'select_first_region'
|
||||||
_SELECT_FIRST_REGION_FILTER = {
|
_SELECT_FIRST_REGION_FILTER = {
|
||||||
'config': {},
|
'config': {},
|
||||||
|
'disabled': False,
|
||||||
'filter': u'select_first_region'
|
'filter': u'select_first_region'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,11 +269,13 @@ class Ns1Provider(BaseProvider):
|
|||||||
'config': {
|
'config': {
|
||||||
'eliminate': u'1'
|
'eliminate': u'1'
|
||||||
},
|
},
|
||||||
|
'disabled': False,
|
||||||
'filter': 'priority'
|
'filter': 'priority'
|
||||||
}
|
}
|
||||||
|
|
||||||
_WEIGHTED_SHUFFLE_FILTER = {
|
_WEIGHTED_SHUFFLE_FILTER = {
|
||||||
'config': {},
|
'config': {},
|
||||||
|
'disabled': False,
|
||||||
'filter': u'weighted_shuffle'
|
'filter': u'weighted_shuffle'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -273,6 +283,7 @@ class Ns1Provider(BaseProvider):
|
|||||||
'config': {
|
'config': {
|
||||||
'N': u'1'
|
'N': u'1'
|
||||||
},
|
},
|
||||||
|
'disabled': False,
|
||||||
'filter': u'select_first_n'
|
'filter': u'select_first_n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user