Commit Graph
71 Commits
Author SHA1 Message Date
Yousong Zhou e201573d61 feat(apis): add const VPC_OVN_ENCAP_COST 2020-12-17 21:38:11 +08:00
Yousong Zhou 25cd808840 fix(vpcagent): ovn: stable dns A record value 2020-12-15 10:41:43 +08:00
Yousong Zhou 65220a6f5a feat(vpcagent): export subnet mac gen funcs 2020-12-02 18:04:31 +08:00
Yousong Zhou 929fa87c5f vpcagent: ovn: make aware of sub ips 2020-11-26 21:18:59 +08:00
Yousong Zhou be478c4430 vpcagent: models: join network addresses 2020-11-26 21:18:59 +08:00
Yousong Zhou d96d51603e vpcagent: apihelper: filter by cloud_env=onpremise 2020-11-26 21:18:59 +08:00
Yousong Zhou 9beb3706ed fix(vpcagent): models: guestnetworks: accomodate change_ipaddr
change_ipaddr does detach, then attach of network.  It's not solely an
update of ipaddr, but a combination of deletion then creation.
2020-11-24 21:55:04 +08:00
Yousong Zhou 39f979398b vpcagent: ovn: increase dhcp lease, renew, rebind time 2020-10-09 10:07:18 +08:00
Yousong Zhou 9168284d59 vpcagent: guard against foul eip records 2020-09-07 17:24:08 +08:00
Yousong Zhou ad6b38f68a vpcagent: respect guest src check settings (#7677)
mac   ip    dhcp    ping    xipping    xmacping
  on    on    y       y       n          n
  on    off   y       y       y          n
  off   off   y       y       y          y

external access depends on source routing, changing ip address will
fail that

note dst mac address of reply packet when changing only mac address
with vpc ip remains the same
2020-08-31 16:31:37 +08:00
Yousong Zhou 500e2edad7 vpcagent: ignore network without wire ids (#7629) 2020-08-25 23:31:32 +08:00
Yousong Zhou 6dc007425c Bugfix/yousong vpc ext (#7585)
* apis: vpcs_ovn: alloc for interconnects

* vpcagent: names: add vpc ext names

* vpcagent: use var hasXxxgw

* vpcagent: add switch and router for ext access

Link: https://github.com/yunionio/onecloud/issues/7583
2020-08-16 23:40:53 +08:00
Yousong Zhou 20f36afdc8 vpcagent: ClaimVpcGuestDnsRecords: guard against pending_deleted guests 2020-07-06 16:20:06 +08:00
Yousong Zhou 97251c7cc9 vpcagent: different direction for l3 and l4 match 2020-06-19 19:42:58 +08:00
Yousong Zhou ba0e41d995 vpcagent: ovn: claim dnsrecords for all vpcs 2020-06-03 18:48:24 +08:00
Yousong Zhou 583718014c vpcagent: models: include dnsrecords 2020-06-03 18:25:59 +08:00
Yousong Zhou 88095c6d82 vpcagent: ovn: dns records for guest names 2020-06-03 18:25:59 +08:00
Yousong Zhou d51791396f vpcagent: ovn: mark and sweep dns records 2020-06-03 18:25:59 +08:00
Yousong Zhou e442e7a259 vpcagent: ovn: apply qos on eip 2020-05-28 15:51:21 +08:00
Yousong Zhou 4b44f21abf vpcagent: ovn: apply guestnetwork bw_limit
For kernel datapath, this requires at least openvswitch 2.10, or linux
4.15
2020-05-28 15:51:21 +08:00
Yousong Zhou 4b299846de vpcagent: ovn: use FindXxxReferrer_yyy 2020-05-28 15:51:21 +08:00
Yousong Zhou 2841e245e2 vpcagent: ovn: set underlay mtu size in config file 2020-05-28 15:51:20 +08:00
Yousong Zhou 83a44ce94c vpcagent: ovn: mix eipgw and distgw 2020-05-28 15:51:20 +08:00
Yousong Zhou 822ba58756 vpcagent: models: include elasticip 2020-05-28 15:51:20 +08:00
Yousong Zhou 22090a3790 vpcagent: ovn: add and use mac.HashVpcHostDistgwMac() 2020-05-28 15:51:20 +08:00
Yousong Zhou 146ab44fbd vpcagent: models: separate Copy() and CopyJoined() 2020-05-26 17:50:41 +08:00
Yousong Zhou cb27b18052 vpcagent: apihelper: use CopyJoined() 2020-05-26 17:50:41 +08:00
Yousong Zhou c4b3084896 vpcagent: models: add CopyJoined() 2020-05-26 17:50:41 +08:00
Yousong Zhou 8873c8905e vpcagent: remove unused code 2020-05-26 17:50:41 +08:00
Yousong Zhou 230f004f36 vpcagent: apihelper: use its own options 2020-05-26 17:50:41 +08:00
Yousong Zhou 3e09d4920b vpcagent: models: remove now boilerplate code 2020-05-22 11:10:11 +08:00
Yousong Zhou c7fee7c760 vpcagent: apihelper: add interface IModelSetListOptionProvider
All modelsets do not need details at the moment
2020-05-22 11:10:11 +08:00
Yousong Zhou f5360264fe vpcagent: models: modelset: details=false for networks 2020-05-21 17:21:03 +08:00
Yousong Zhou 3a51985fcd vpcagent: models: include wires 2020-05-21 17:21:03 +08:00
Yousong Zhou 5fdd534f74 vpcagent: ovn: preparation: skip default vpc 2020-05-21 17:21:03 +08:00
Yousong Zhou a7a3beae27 vpcagent: ovn: preparation: use network.Vpc.Id 2020-05-21 17:21:03 +08:00
Yousong Zhou e0349f92b7 vpcagent: apihelper: use IModelSet.IncludeEmulated() 2020-05-21 17:21:03 +08:00
Yousong Zhou 5bf45ad65c vpcagent: models: modelset: add IncludeEmulated() method 2020-05-21 17:21:03 +08:00
Yousong Zhou 39a19d1c68 vpcagent: apihelper: use IModelSet.IncludeDetails() 2020-05-21 17:21:03 +08:00
Yousong Zhou 2a0cac9d49 vpcagent: models: modelset: add IncludeDetails() method 2020-05-21 17:21:03 +08:00
Yousong Zhou 4d54972a9a vpcagent: ovnutil: destroy non root obj first
To avoid the following error

	/* Can't happen because of the database schema. */
	ctl_fatal("logical port %s is not part of any logical router",
		  ctx->argv[1]);
2020-05-15 16:28:17 +08:00
Yousong Zhou 6d788e052a vpcagent: ovn: cmp: generate clean args in a single batch 2020-05-15 16:28:17 +08:00
Yousong Zhou 4962bdc7e1 vpcagent: ovn: use db.FindOneMatchByAnyIndex 2020-05-13 14:14:49 +08:00
Yousong Zhou 579641a268 vpcagent: ovn: configure acl for lport 2020-05-13 14:14:49 +08:00
Yousong Zhou 53f3546125 vpcagent: ovnutil: OvnNbctlArgsDestroy: take into account ACL 2020-05-13 14:14:48 +08:00
Yousong Zhou 9f4daafee2 vpcagent: ovn: secgrouprules_acl 2020-05-13 14:14:48 +08:00
Yousong Zhou 1abdb4f136 vpcagent: models: sort security group rules 2020-05-13 14:14:48 +08:00
Yousong Zhou 7ba46e9289 vpcagent: models: include secgroup and rules 2020-05-13 14:14:48 +08:00
Yousong Zhou f33a2e1770 vpcagent: apihelper: do not set details=true by default 2020-05-13 14:14:48 +08:00
Yousong Zhou 654845fd49 vpcagent: ovnutil: remove old generated code 2020-05-13 14:14:48 +08:00