Skip to content

Commit dec9965

Browse files
committed
add RoutingPlan
1 parent 96c3ee5 commit dec9965

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
11+
python-version: ['3.8', '3.9', '3.10', '3.11']
1212

1313
steps:
1414
- uses: actions/checkout@v2

yeti_switch_api/orm/customers_auth.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ class Meta:
77
type = "customers-auths"
88

99
name = AttributeField("name")
10+
enabled = AttributeField("enabled")
1011
src_numberlist = RelationField("src-numberlist")
1112
dst_numberlist = RelationField("dst-numberlist")
1213

1314
customer = RelationField("customer")
1415
account = RelationField("account")
1516
rateplan = RelationField("rateplan")
16-
routing_plan = RelationField("routing_plan")
17+
routing_plan = RelationField("routing-plan")
1718
gateway = RelationField("gateway")
1819
pop = RelationField("pop")
1920

@@ -22,3 +23,22 @@ class Meta:
2223
dst_prefix = AttributeField("dst-prefix")
2324
x_yeti_auth = AttributeField("x-yeti-auth")
2425

26+
def creatable_fields(self):
27+
return [
28+
"name",
29+
"enabled",
30+
"src-numberlist"
31+
"dst-numberlist",
32+
"customer",
33+
"account",
34+
"rateplan",
35+
"routing-plan",
36+
"gateway",
37+
"pop",
38+
"ip",
39+
"src-prefix",
40+
"dst-prefix",
41+
"x-yeti-auth"
42+
]
43+
44+

0 commit comments

Comments
 (0)